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)); } }
public async Task <NewsListVM> GetAll() { return(await _newsStorage.GetAll()); }