Пример #1
0
 public async Task <List <Category> > GetAllCategories()
 {
     try
     {
         return(await _foodRepository.GetAllCategories());
     }
     catch (Exception err)
     {
         Console.WriteLine(err);
         return(null);
     }
 }