示例#1
0
        public async Task <Response <ListItem> > Save(Request.Expense.Expense expense)
        {
            var result = await superFaktura.Post("/expenses/add", new { Expense = expense }).ConfigureAwait(false);

            return(superFaktura.DeserializeResult <Response <ListItem> >(result));
        }
示例#2
0
        public async Task <ResponsePayment> Pay(Request.Invoice.Payment payment)
        {
            var result = await superFaktura.Post("invoice_payments/add/ajax:1/api:1", new { InvoicePayment = payment }).ConfigureAwait(false);

            return(superFaktura.DeserializeResult <ResponsePayment>(result));
        }
示例#3
0
        public async Task <Response <Detail> > Save(Request.Stock.Item item)
        {
            var result = await superFaktura.Post("stock_items/add", item).ConfigureAwait(false);

            return(superFaktura.DeserializeResult <Response <Detail> >(result));
        }
示例#4
0
        public async Task <Response <ListItem> > Save(Request.Client.Client client)
        {
            var result = await superFaktura.Post("clients/create", new { Client = client }).ConfigureAwait(false);

            return(superFaktura.DeserializeResult <Response <ListItem> >(result));
        }