Пример #1
0
 private static void Seed(IBillService billService)
 {
     if (!billService.GetBillValuesAsync().Result.Any())
     {
         billService.AddBillsAsync(new List <Bill> {
             new Bill {
                 Value = 5, Quantity = 20
             },
             new Bill {
                 Value = 10, Quantity = 60
             },
             new Bill {
                 Value = 20, Quantity = 80
             },
             new Bill {
                 Value = 50, Quantity = 100
             }
         });
     }
 }