public IDataResult <List <Movie> > GetAll(int?pageNumber, int?pageSize) { try { return(new SuccessDataResult <List <Movie> >(_movieDal.GetListWithPagination(pageNumber, pageSize).ToList())); } catch (Exception e) { return(new ErrorDataResult <List <Movie> >(e.Message)); } }