Ignore:
Timestamp:
08/20/24 16:16:26 (3 months ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
d6040ef
Parents:
6782104
Message:

fix missing part of auth

Products controler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Controllers/ProductsController.cs

    r6782104 r63bd770  
    1616        public ProductsController(UserManager<IdentityUser> userManager) : base(userManager)
    1717        {
    18             // set if is authenticated
    19             ViewBag.isAuthenticated = new UsersClass();
    2018        }
    2119
     
    2826        //}
    2927        // GET: Customer
    30         public ActionResult Index(string? searchString)
     28        public async Task<ActionResult> IndexAsync(string? searchString)
    3129        {
    3230            // set if is authenticated
    33             ViewBag.isAuthenticated = new UsersClass();
     31            ViewBag.isAuthenticated = await getCrrentUser();
    3432            if (!String.IsNullOrEmpty(searchString))
    3533            {
Note: See TracChangeset for help on using the changeset viewer.