示例#1
0
 public async Task <NewsListVM> GetAll(int countEntity, int page)
 {
     if (countEntity <= 0 || page <= 0)
     {
         NewsListVM listEmpty = new NewsListVM();
         return(listEmpty);
     }
     else
     {
         return(await _newsStorage.GetAll(countEntity, page));
     }
 }
示例#2
0
 public async Task <NewsListVM> GetAll()
 {
     return(await _newsStorage.GetAll());
 }