Skip to content

Commit 7093370

Browse files
committed
Added comments and change in web.config
Change CutomeError Mode to On in Web.config.
1 parent 18b6303 commit 7093370

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

ADONETWithSqlServerMVCApp/Controllers/HomeController.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ public ActionResult DeleteRecord(int id)
169169
}
170170

171171
// This action is used for Dummy page only
172-
public ActionResult showData()
173-
{
174-
Employee emp = new Employee();
175-
List<EmployeeAccessLayer> List_EmployeeAccess = emp.GetData();
176-
return View(List_EmployeeAccess);
177-
}
172+
//public ActionResult showData()
173+
//{
174+
// Employee emp = new Employee();
175+
// List<EmployeeAccessLayer> List_EmployeeAccess = emp.GetData();
176+
// return View(List_EmployeeAccess);
177+
//}
178178
}
179179
}

ADONETWithSqlServerMVCApp/DBAccessLayer/employee.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/**
1111
* This is used for Dummy page which is directly get data from database.
12+
* this calss is not in use on application. It is used only for Dummy page.
1213
*/
1314

1415
namespace ADONETWithSqlServerMVCApp.DBAccessLayer

ADONETWithSqlServerMVCApp/Models/EmployeeAccessLayer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* This is used for Dummy page.
9+
* this calss is not in use on application. It is used only for Dummy page.
910
*/
1011
namespace ADONETWithSqlServerMVCApp.Models
1112
{

ADONETWithSqlServerMVCApp/Web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<system.web>
1414
<compilation debug="true" targetFramework="4.7.2"/>
1515
<httpRuntime targetFramework="4.7.2"/>
16-
<customErrors mode='Off'></customErrors>
16+
<customErrors mode='On'></customErrors>
1717
</system.web>
1818
<runtime>
1919
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

0 commit comments

Comments
 (0)