Esempio n. 1
0
        public async Task <int> AddInvoice(int customerId)
        {
            var service   = DemoProxy.InvoiceService();
            var invoiceId = await service.AddInvoice(customerId);

            return(invoiceId);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
        /// <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);
        }
Esempio n. 4
0
 public async Task UpdateInvoice(Invoice invoice)
 {
     var service = DemoProxy.InvoiceService();
     await service.UpdateInvoice(invoice);
 }