Changeset 6782104 for PostgreSqlDotnetCore/Controllers/ErrorController.cs
- Timestamp:
- 08/20/24 16:13:49 (3 months ago)
- Branches:
- main
- Children:
- 63bd770
- Parents:
- 8f8226c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Controllers/ErrorController.cs
r8f8226c r6782104 2 2 { 3 3 using Microsoft.AspNetCore.Http; 4 using Microsoft.AspNetCore.Identity; 4 5 using Microsoft.AspNetCore.Mvc; 6 using System.Threading.Tasks; 5 7 6 public class ErrorController : Controller8 public class ErrorController : BaseController 7 9 { 10 public ErrorController(UserManager<IdentityUser> userManager) : base(userManager) 11 { 12 13 } 8 14 // GET: ErrorController 9 public IActionResult AccessDenied()15 public async Task<IActionResult> AccessDeniedAsync() 10 16 { 17 // set if is authenticated 18 ViewBag.isAuthenticated = await getCrrentUser(); 11 19 return View(); 12 20 } 13 21 // GET: ErrorController 14 public IActionResult NotExist()22 public async Task<IActionResult> NotExistAsync() 15 23 { 24 // set if is authenticated 25 ViewBag.isAuthenticated = await getCrrentUser(); 16 26 return View(); 17 27 }
Note:
See TracChangeset
for help on using the changeset viewer.