public async Task <int> AddInvoice(int customerId) { var service = DemoProxy.InvoiceService(); var invoiceId = await service.AddInvoice(customerId); return(invoiceId); }
/// <summary> /// Gets the customers. /// </summary> /// <returns></returns> public async Task <IEnumerable <Invoice> > GetAllInvoicesForCustomer(int customerId) { var service = DemoProxy.InvoiceService(); var result = await service.GetAllInvoicesForCustomer(customerId); return(result); }
/// <summary> /// Gets the customer. /// </summary> /// <param name="id">The identifier.</param> /// <returns></returns> public async Task <Invoice> GetInvoice(int id) { var service = DemoProxy.InvoiceService(); var result = await service.GetInvoice(id); return(result); }
public async Task UpdateInvoice(Invoice invoice) { var service = DemoProxy.InvoiceService(); await service.UpdateInvoice(invoice); }