Changeset 57fc402 for PostgreSqlDotnetCore/Controllers/CityController.cs
- Timestamp:
- 08/22/24 01:46:17 (3 months ago)
- Branches:
- main
- Children:
- 72b1da2
- Parents:
- d6040ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Controllers/CityController.cs
rd6040ef r57fc402 17 17 public async Task<ActionResult> IndexAsync() 18 18 { 19 // check for permission 20 UsersClass customerClass = await checkAuthorizationAsync(); 21 22 23 if (customerClass == null) 24 { 25 return RedirectToAction("AccessDenied", "Error"); 26 } 27 28 var citiess = await db.CitiesObj.ToListAsync(); 29 30 return View(citiess); 31 } 32 33 34 35 36 /* public async Task<ActionResult> IndexAsync() 37 { 19 38 // check for permission 20 39 UsersClass customerClass = await checkAuthorizationAsync(); … … 26 45 return View(db.CitiesObj.ToList()); 27 46 } 28 47 */ 48 29 49 30 50 … … 138 158 base.Dispose(disposing); 139 159 } 160 161 162 163 140 164 } 141 165 }
Note:
See TracChangeset
for help on using the changeset viewer.