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())); }
public List <Video> GetList(Expression <Func <Task, bool> > filter = null) { return(_videoDal.GetAll()); }