put lendTime, Category adjustment into constructor

This commit is contained in:
nek0 2020-04-28 11:04:31 +02:00
parent c0c12cba82
commit c13e5ae800
2 changed files with 2 additions and 3 deletions

View file

@ -52,7 +52,8 @@ namespace Bücherwurm
public Book()
{
Category = "book";
LendTime = 30;
}
public void OverwriteNullId(int id)

View file

@ -23,8 +23,6 @@ namespace Bücherwurm
foreach (var Ibook in IntermediateBooks)
{
Ibook.OverwriteNullId(NextId);
Ibook.Category = "book";
Ibook.LendTime = 30;
NextId += 1;
}
Products = new List<IProduct>(IntermediateBooks);