- 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/PetCaresController.cs
rd6040ef r57fc402 78 78 79 79 // GET: Customer/Details/5 80 public ActionResultDetails(int? id)80 public async Task<ActionResult> Details(int? id) 81 81 { 82 82 if (id == null) … … 84 84 return RedirectToAction("NotExist", "Error"); 85 85 } 86 UsersClass customerClass = await getCrrentUser(); 87 ViewBag.isAuthenticated = customerClass; 86 88 Pet_CaresClass peClass = db.PetCaresObj.Find(id); 87 89 if (peClass == null) … … 178 180 var vetCenters = await db.VetCentersObj.ToListAsync(); 179 181 ViewBag.VetCenters = new SelectList(vetCenters, "id", "name", peClass.vetcentersid); 180 182 // dodadeno na 22.08 183 ViewBag.isAuthenticated = await getCrrentUser(); 181 184 return View(peClass); 182 185 } … … 196 199 return RedirectToAction("AccessDenied", "Error"); 197 200 } 201 ViewBag.isAuthenticated = await getCrrentUser(); 198 202 199 203 if (ModelState.IsValid) … … 214 218 215 219 // GET: Customer/Delete/5 216 public ActionResultDelete(int? id)220 public async Task<ActionResult> Delete(int? id) 217 221 { 218 222 if (id == null) … … 220 224 return RedirectToAction("NotExist", "Error"); 221 225 } 226 UsersClass customerClass = await getCrrentUser(); // Добијте ја тековната улога на корисникот 227 ViewBag.isAuthenticated = customerClass; 222 228 Pet_CaresClass peClass = db.PetCaresObj.Find(id); 223 229 if (peClass == null)
Note:
See TracChangeset
for help on using the changeset viewer.