Browse Source

make items from import

Felix
nek0 11 months ago
parent
commit
f94d8b2c65
  1. 5
      Program.cs

5
Program.cs

@ -43,10 +43,11 @@ namespace BuecherwurmAPI
imports.AddRange(importedBooks);
//imports.AddRange(importedMags);
var model = new Models.KatalogModel();
foreach (var item in imports)
{
model.AddProduct(item);
var id = catalogue.AddProduct(item);
items.NewItem(new Models.ItemPost{ BookId = (int)id});
items.NewItem(new Models.ItemPost{ BookId = (int)id});
}
}

Loading…
Cancel
Save