예제 #1
0
        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()));
        }
예제 #2
0
 public List <Subscriber> GetAll()
 {
     return(subscriberDal.GetAll());
 }