Beispiel #1
0
 public async Task <IEnumerable <Item> > GetItemsWithManufactureNameAsync(string manufactureName)
 {
     if (manufactureName == null)
     {
         throw new ArgumentNullException(nameof(manufactureName));
     }
     using (var context = new PriceCompareDbContext())
     {
         var managerRep = new ManagerRepository(context);
         return(await managerRep.GetItemsWithManufactureNameAsync(manufactureName));
     }
 }