/// <summary>
 /// The GetRegister
 /// </summary>
 /// <returns>The <see cref="ServiceResult"/></returns>
 public ServiceResult GetRegister()
 {
     return(new ServiceResult(true)
     {
         Data = _repository.GetAll().AsQueryable()
     });
 }
示例#2
0
        /// <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());
 }
示例#5
0
 public IActionResult GetAll()
 {
     return(Ok(_registerRepository.GetAll()));
 }