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)); }
public List <Member> GetAll() { return(_memberDal.GetAll()); }