public PaymentDTO(int id, decimal totalAmount, DateTime paymentDate, AccountDTO customer, InvoiceDTO invoice) { this.id = id; this.totalAmount = totalAmount; this.paymentDate = paymentDate; this.customer = customer; this.invoice = invoice; }
public void SetInvoice(InvoiceDTO invoice) { this.invoice = invoice; }
public void AddInvoice(InvoiceDTO invoice) { this.invoices.Add(invoice); }