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)); }
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)); }
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)); }
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)); }