1
Answer

How to get Logged In User Name while creating or updating the record

How to get loggedin user name using this constructor of ApplicationDbContext, using ILoggedInUserService loggedInUserService

public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options, ILoggedInUserService loggedInUserService)
            : base(options)
        {
            _loggedInUserService = loggedInUserService;
        }

Please do tell if anyone knew regarding this.

Answers (1)