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);
        }
Exemplo n.º 2
0
        public async Task <ApiResponse <Ticket> > GetById(int id, bool includeDeletedItems = false)
        {
            var result = await _apiClient.Get <Ticket>($"&id={id}&includeDeletedItems={includeDeletedItems}");

            return(result);
        }
Exemplo n.º 3
0
        public async Task <ApiResponse <List <Person> > > Get(OData odata = null)
        {
            var result = await _apiClient.Get <List <Person> >(odata?.ToString());

            return(result);
        }