make items from import
This commit is contained in:
parent
ea81721be3
commit
f94d8b2c65
1 changed files with 3 additions and 2 deletions
|
@ -43,10 +43,11 @@ namespace BuecherwurmAPI
|
||||||
imports.AddRange(importedBooks);
|
imports.AddRange(importedBooks);
|
||||||
//imports.AddRange(importedMags);
|
//imports.AddRange(importedMags);
|
||||||
|
|
||||||
var model = new Models.KatalogModel();
|
|
||||||
foreach (var item in imports)
|
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…
Reference in a new issue