예제 #1
0
 public PaginatedResult <T> FecthAll(PaginatedInfo pageInfo)
 {
     try
     {
         return(Repository.FetchAll(pageInfo));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public PaginatedResult <T> FetchByCustomCriteria(Expression <Func <T, bool> > criterion,
                                                  PaginatedInfo pageInfo)
 {
     try
     {
         return(Repository.FetchByCustomCriteria(criterion, pageInfo));
     }
     catch (Exception)
     {
         throw;
     }
 }