27 lines
No EOL
522 B
C#
27 lines
No EOL
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;
|
|
}
|
|
}
|
|
} |