public int GetCountAdministrators() { var result = _userRepository.GetCountObject(x => x.Roles.Select(role => role.RoleEnum).Contains(RoleEnum.Administrator)); return(result); }
public virtual int GetCountObject(Expression <Func <TDomain, bool> > filter) { return(SqlDataRepository.GetCountObject(filter) + MongoDataRepository.GetCountObject(filter)); }