コード例 #1
0
        public async Task <int> AddInvoice(int customerId)
        {
            var service   = DemoProxy.InvoiceService();
            var invoiceId = await service.AddInvoice(customerId);

            return(invoiceId);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #4
0
 public async Task UpdateInvoice(Invoice invoice)
 {
     var service = DemoProxy.InvoiceService();
     await service.UpdateInvoice(invoice);
 }