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

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