/// <summary> /// The GetRegister /// </summary> /// <returns>The <see cref="ServiceResult"/></returns> public ServiceResult GetRegister() { return(new ServiceResult(true) { Data = _repository.GetAll().AsQueryable() }); }
/// <summary> /// Gets the query. /// </summary> /// <returns></returns> private IQueryable <User> GetQuery() { var result = m_IRegisterRepository.GetAll().Where(x => !x.IsDeleted) .Include(x => x.Roles) .ThenInclude(x => x.Role); return(result); }
public IEnumerable <Register> GetUsers() { var users = userRepository.GetAll(); return(users); }
IEnumerable <Person> IBaseService <Person> .GetAll() { return(_registerRepository.GetAll()); }
public IActionResult GetAll() { return(Ok(_registerRepository.GetAll())); }