Exemplo n.º 1
0
 public async Task <IEnumerable <Item> > GetItemsByNameAsync(string itemName)
 {
     if (itemName == null)
     {
         throw new ArgumentNullException();
     }
     using (var context = new PriceCompareDbContext())
     {
         var managerReop = new ManagerRepository(context);
         return(await managerReop.GetItemsByNameAsync(itemName));
     }
 }