public async Task <PagedResponse> Get(Filter filter, bool listInfo = true) { var result = await superFaktura.Get(string.Format("clients/index.json{0}", filter.ToParameters(listInfo))).ConfigureAwait(false); if (listInfo) { return(superFaktura.DeserializeResult <PagedResponse>(result)); } else { return(new PagedResponse { Items = superFaktura.DeserializeResult <ItemList <ListItem> >(result) }); } }
public async Task <Response <ExpandoObject> > Get(int ID) { var result = await superFaktura.Get(string.Format("expense/edit/{0}.json", ID)).ConfigureAwait(false); return(superFaktura.DeserializeResult <Response <ExpandoObject> >(result)); }
public async Task <Detail> Get(int ID) { var result = await superFaktura.Get(string.Format("invoices/view/{0}.json", ID)).ConfigureAwait(false); return(superFaktura.DeserializeResult <Detail>(result)); }