Пример #1
0
        public IDataResult <List <Video> > GetAll()
        {
            IResult result = BusinessRule.Run
                             (
                _channelService.CheckIfChannelsExist(),
                _userService.CheckIfUsersExist(),
                CheckIfVideosExist()
                             );

            if (result != null)
            {
                return(new ErrorDataResult <List <Video> >(result.Message));
            }

            return(new SuccessDataResult <List <Video> >(_videoDal.GetAll()));
        }
Пример #2
0
 public List <Video> GetList(Expression <Func <Task, bool> > filter = null)
 {
     return(_videoDal.GetAll());
 }