public MakeReservationCommand ( System.DateTime date, string name, string email, int quantity ) : System | ||
date | System.DateTime | |
name | string | |
string | ||
quantity | int | |
Результат | System |
public MakeReservationCommand(DateTime date, string name, string email, int quantity)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
if (email == null)
{
throw new ArgumentNullException("email");
}
this.id = Guid.NewGuid();
this.date = date;
this.name = name;
this.email = email;
this.quantity = quantity;
}