Buecherwurm/Lending.cs

23 lines
473 B
C#
Raw Normal View History

2020-04-23 11:27:32 +00:00
using System;
namespace Bücherwurm
{
class Lending
{
public int LendId {get;}
2020-04-28 08:54:22 +00:00
public int LendItem {get; set;}
2020-04-23 11:27:32 +00:00
public DateTime ReturnDate {get;}
public string Customer {get; }
2020-04-28 08:54:22 +00:00
public Lending(int Id, int Item, string Customer, int timeInDays)
2020-04-23 11:27:32 +00:00
{
LendId = Id;
2020-04-28 08:54:22 +00:00
LendItem = Item;
ReturnDate = DateTime.Now.AddDays(timeInDays);
2020-04-23 11:27:32 +00:00
this.Customer = Customer;
}
}
}