public async Task <ApiResponse <List <TimeAgreement> > > Get(OData odata) { if (odata == null) { throw new ArgumentNullException("odata", "odata cannot be null"); } if (string.IsNullOrEmpty(odata.Select)) { throw new ArgumentNullException("odata", "odata.select must be informed for this method"); } var result = await _client.Get <List <TimeAgreement> >(odata.ToString()); return(result); }
public async Task <ApiResponse <Ticket> > GetById(int id, bool includeDeletedItems = false) { var result = await _apiClient.Get <Ticket>($"&id={id}&includeDeletedItems={includeDeletedItems}"); return(result); }
public async Task <ApiResponse <List <Person> > > Get(OData odata = null) { var result = await _apiClient.Get <List <Person> >(odata?.ToString()); return(result); }