public IDataResult <List <Subscriber> > GetAll() { IResult result = BusinessRule.Run ( CheckIfSubscribersExist() ); if (result != null) { return(new ErrorDataResult <List <Subscriber> >(result.Message)); } return(new SuccessDataResult <List <Subscriber> >(_subscriberDal.GetAll())); }
public List <Subscriber> GetAll() { return(subscriberDal.GetAll()); }