public ClientBill(string ClientName, List <Receipt> Recepits, YearAndMonth yearAndMonth) { TotalBill = 0; this.ClientName = ClientName; this.Recepits = Recepits; foreach (var item in Recepits) { TotalBill += item.TotalPayment; } this.yearAndMonth = yearAndMonth; }
public BillRequestModel(string ClientID, List <string> Lines, YearAndMonth Date) { this.ClientID = ClientID; this.Lines = Lines; this.Date = Date; }