public UserSearch MapValue(IUserSearch src, UserSearch dest) { dest.UserId = src.UserId; dest.UserName = src.UserName; return(dest); }
public SystemAdminController(ISettingsProvider settingsProvider, ISystemAdminHelperService systemAdminHelperService, ISeoProvider seoProvider, IUserSearch userSearch, IClaimsProvider claimsProvider) { _settingsProvider = settingsProvider ?? throw new ArgumentNullException(nameof(settingsProvider)); _systemAdminHelperService = systemAdminHelperService ?? throw new ArgumentNullException(nameof(systemAdminHelperService)); _seoProvider = seoProvider ?? throw new ArgumentNullException(nameof(seoProvider)); _userSearch = userSearch ?? throw new ArgumentNullException(nameof(userSearch)); _claimsProvider = claimsProvider ?? throw new ArgumentNullException(nameof(claimsProvider)); }
public SearchController( UserManager <CertificateUser> userManager, ICertificateHandler certificateHandler, IUserSearch userSearch) { this.userManager = userManager; this.certificateHandler = certificateHandler; this.userSearch = userSearch; }
public async Task <ListOf <UserListViewModel> > Search(IUserSearch search) { var users = _mapper.Map <IEnumerable <UserListViewModel> >(await _userService.Search(search)); var total = await _userService.Count(search); var claims = await GetClaimsFromUsers(users.Select(s => s.UserName), JwtClaimTypes.Picture, JwtClaimTypes.GivenName); foreach (var domainUser in users) { if (claims.ContainsKey(domainUser.UserName)) { domainUser.UpdateMetadata(claims[domainUser.UserName]); } } return(new ListOf <UserListViewModel>(_mapper.Map <IEnumerable <UserListViewModel> >(users), total)); }
public AdminController(IUserSearch<UserIdentity> userSearch, IUserStore<UserIdentity> userStore, IUserRoleStore<UserIdentity> roleStore) { _userSearch = userSearch; _userStore = userStore; _roleStore = roleStore; }