public IEnumerable <CustomerDTO> GetCustomers() { return(MapDTO.MapList <CustomerDTO, Customer>(repo.ReadCustomers())); }
public void ChangeCustomer(CustomerDTO customer) { repo.UpdateCustomer(MapDTO.Map <Customer, CustomerDTO>(customer)); }
public CustomerDTO GetCustomer(int customerId) { return(MapDTO.Map <CustomerDTO, Customer>(repo.ReadCustomer(customerId))); }
public IEnumerable <InvoiceDetailDTO> GetInvoiceDetails(int invoiceNr) { return(MapDTO.MapList <InvoiceDetailDTO, InvoiceDetail>(repo.ReadDetails(invoiceNr))); }
public CustomerDTO AddCustomers(CustomerDTO customer) { repo.CreateCustomer(MapDTO.Map <Customer, CustomerDTO>(customer)); return(customer); }
public IEnumerable <InvoiceDTO> GetInvoices() { return(MapDTO.MapList <InvoiceDTO, Invoice>(repo.ReadInvoices())); }
public void ChangeInvoice(InvoiceDTO invoice) { repo.UpdateInvoice(MapDTO.Map <Invoice, InvoiceDTO>(invoice)); }
public InvoiceDTO GetInvoice(int invoiceNr) { return(MapDTO.Map <InvoiceDTO, Invoice>(repo.ReadInvoice(invoiceNr))); }
public InvoiceDTO AddInvoice(InvoiceDTO invoice) { repo.CreateInvoice(MapDTO.Map <Invoice, InvoiceDTO>(invoice)); return(invoice); }
public InvoiceDetailDTO GetInvoiceDetail(int invoiceDetailId) { return(MapDTO.Map <InvoiceDetailDTO, InvoiceDetail>(repo.ReadInvoiceDetail(invoiceDetailId))); }
public void ChangeInvoiceDetail(InvoiceDetailDTO invoiceDetail) { repo.UpdateInvoiceDetail(MapDTO.Map <InvoiceDetail, InvoiceDetailDTO>(invoiceDetail)); }
public InvoiceDetailDTO AddInvoiceDetail(InvoiceDetailDTO invoiceDetail) { repo.CreateInvoiceDetail(MapDTO.Map <InvoiceDetail, InvoiceDetailDTO>(invoiceDetail)); return(invoiceDetail); }