public RoleBusiness(IRoleDataAccess roleDataAccess, IHttpContextAccessor httpContextAccessor)
        {
            _roleDataAccess      = roleDataAccess;
            _httpContextAccessor = httpContextAccessor;
            var result = httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier);

            _username = result == null ? "SYSTEM" : result.Value;
        }
Example #2
0
 public UserManager(IUserDataAccess userDataAccess, IRoleDataAccess roleDataAccess)
 {
     this.userDataAccess = userDataAccess;
     this.roleDataAccess = roleDataAccess;
 }
Example #3
0
 public RoleManager(IRoleDataAccess roleDataAccess)
 {
     this.roleDataAccess = roleDataAccess;
 }
Example #4
0
 public RoleManager(IRoleDataAccess roleDataAccess)
 {
     this.roleDataAccess = roleDataAccess;
 }