Пример #1
0
        public IDataResult <List <Member> > GetAll(Expression <Func <Member, bool> > filter = null)
        {
            var result = _memberDal.GetAll(filter);

            if (result == null)
            {
                return(new ErrorDataResult <List <Member> >(Messages.NotFound));
            }
            return(new SuccessDataResult <List <Member> >(result));
        }
Пример #2
0
 public List <Member> GetAll()
 {
     return(_memberDal.GetAll());
 }