public async Task <IEnumerable <IPicklistState> > GetAsync(ICriterion filter, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue, IList <string> fields = null) { IEnumerable <IPicklistState> states = null; var q = new PicklistsGetQuery(); q.FirstResult = firstResult; q.MaxResults = maxResults; q.Sort = PicklistProxyUtils.GetOrdersQueryValueString(orders); q.Fields = PicklistProxyUtils.GetReturnedFieldsQueryValueString(fields, QueryFieldValueSeparator); q.Filter = PicklistProxyUtils.GetFilterQueryValueString(filter); var req = new PicklistsGetRequest(); req.Query = q; var resp = await _ramlClient.Picklists.Get(req); PicklistProxyUtils.ThrowOnHttpResponseError(resp); states = (resp.Content == null) ? null : resp.Content.Select(e => e.ToPicklistState()); return(states); }