Buecherwurm/Lending.cs

27 lines
522 B
C#

using System;
namespace Bücherwurm
{
class Lending
{
public int LendId {get;}
public int LendItem {get; set;}
public DateTime ReturnDate {get;}
public string Customer {get; }
public Lending(
int Id,
int Item,
string Customer,
int timeInDays)
{
LendId = Id;
LendItem = Item;
ReturnDate = DateTime.Now.AddDays(timeInDays);
this.Customer = Customer;
}
}
}