Beispiel #1
0
 public void ChangeCustomer(CustomerDTO customer)
 {
     repo.UpdateCustomer(MapDTO.Map <Customer, CustomerDTO>(customer));
 }
Beispiel #2
0
 public CustomerDTO GetCustomer(int customerId)
 {
     return(MapDTO.Map <CustomerDTO, Customer>(repo.ReadCustomer(customerId)));
 }
Beispiel #3
0
 public void ChangeInvoice(InvoiceDTO invoice)
 {
     repo.UpdateInvoice(MapDTO.Map <Invoice, InvoiceDTO>(invoice));
 }
Beispiel #4
0
 public CustomerDTO AddCustomers(CustomerDTO customer)
 {
     repo.CreateCustomer(MapDTO.Map <Customer, CustomerDTO>(customer));
     return(customer);
 }
Beispiel #5
0
 public InvoiceDTO GetInvoice(int invoiceNr)
 {
     return(MapDTO.Map <InvoiceDTO, Invoice>(repo.ReadInvoice(invoiceNr)));
 }
Beispiel #6
0
 public InvoiceDTO AddInvoice(InvoiceDTO invoice)
 {
     repo.CreateInvoice(MapDTO.Map <Invoice, InvoiceDTO>(invoice));
     return(invoice);
 }
Beispiel #7
0
 public InvoiceDetailDTO GetInvoiceDetail(int invoiceDetailId)
 {
     return(MapDTO.Map <InvoiceDetailDTO, InvoiceDetail>(repo.ReadInvoiceDetail(invoiceDetailId)));
 }
Beispiel #8
0
 public void ChangeInvoiceDetail(InvoiceDetailDTO invoiceDetail)
 {
     repo.UpdateInvoiceDetail(MapDTO.Map <InvoiceDetail, InvoiceDetailDTO>(invoiceDetail));
 }
Beispiel #9
0
 public InvoiceDetailDTO AddInvoiceDetail(InvoiceDetailDTO invoiceDetail)
 {
     repo.CreateInvoiceDetail(MapDTO.Map <InvoiceDetail, InvoiceDetailDTO>(invoiceDetail));
     return(invoiceDetail);
 }