start implementation of magazine
This commit is contained in:
parent
c13e5ae800
commit
d58df2a5f7
1 changed files with 21 additions and 0 deletions
21
Magazine.cs
Normal file
21
Magazine.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
namespace Bücherwurm
|
||||||
|
{
|
||||||
|
public class Magazine : IProduct
|
||||||
|
{
|
||||||
|
public int ProductId {get; set;}
|
||||||
|
|
||||||
|
public string ImageLink {get; set;}
|
||||||
|
|
||||||
|
public string Category {get; set;}
|
||||||
|
|
||||||
|
public int LendTime {get; set;}
|
||||||
|
|
||||||
|
public void OverwriteNullId(int Id)
|
||||||
|
{
|
||||||
|
if (ProductId == 0)
|
||||||
|
{
|
||||||
|
ProductId = Id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue