public ResponseDataModel <List <Account> > GetAll() { var result = _accountDal.GetAll(); int referenceNumber = Guid.NewGuid().GetHashCode(); return(new ResponseDataModel <List <Account> >(result, referenceNumber, false)); }
/// <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); }
public List <Account> GetAll() { return(_accountDal.GetAll()); }
public IEnumerable <AspNetUsers> GetAll() { return(_accountDal.GetAll()); }
public IDataResult <List <Account> > GetAll() { return(new SuccessDataResult <List <Account> >(_accountDal.GetAll(), Messages.AccountListed)); }
public List <Account> GetAll(Expression <Func <Account, bool> > filter = null) { return(_AccountDal.GetAll().ToList()); }
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())))); }