public ResponseDataModel <List <Account> > GetAll()
        {
            var result          = _accountDal.GetAll();
            int referenceNumber = Guid.NewGuid().GetHashCode();

            return(new ResponseDataModel <List <Account> >(result, referenceNumber, false));
        }
예제 #2
0
        /// <summary>
        /// Gets all the items that fufills the filter.
        /// </summary>
        /// <param name="filter"></param>
        /// <param name="errors"></param>
        /// <param name="context"></param>
        /// <param name="order"></param>
        /// <param name="skip"></param>
        /// <param name="take"></param>
        /// <returns></returns>
        public IQueryable <IAccountDataModel> GetAll(Func <IAccountDataModel, bool> filter, List <IModelError> errors, IModelContext context = null, Func <IAccountDataModel, int> order = null, int skip = 0, int take = 999)
        {
            var rtn = dal.GetAll(filter, context)
                      .Skip(skip)
                      .Take(take);

            if (order != null)
            {
                rtn = rtn.OrderBy(order)
                      .AsQueryable();
            }
            return(rtn);
        }
예제 #3
0
 public List <Account> GetAll()
 {
     return(_accountDal.GetAll());
 }
예제 #4
0
 public IEnumerable <AspNetUsers> GetAll()
 {
     return(_accountDal.GetAll());
 }
예제 #5
0
 public IDataResult <List <Account> > GetAll()
 {
     return(new SuccessDataResult <List <Account> >(_accountDal.GetAll(), Messages.AccountListed));
 }
예제 #6
0
 public List <Account> GetAll(Expression <Func <Account, bool> > filter = null)
 {
     return(_AccountDal.GetAll().ToList());
 }
예제 #7
0
 public List <Account> GetAccountsBySearchKey(string key)
 {
     return(_accountDal.GetAll(x => x.FirstName.ToLower().Contains(key.ToLower()) || x.LastName.ToLower().Contains(key.ToLower()) || x.Email.ToLower().Contains(key.ToLower()) || key.ToLower().Contains(x.FirstName.ToLower()) || key.ToLower().Contains(x.LastName.ToLower()) || (key.ToLower().Contains(x.FirstName.ToLower()) && key.ToLower().Contains(x.LastName.ToLower()))));
 }