public async Task<Results<Legislator>> FindLegislators(string query = null, Legislator searchPrototype = null) { var parms = new Dictionary<string, object>(); parms.Add("query", query); parms.AddSearchableProperties(searchPrototype); return await _service.Get<Results<Legislator>>("legislators", parms); }
public async Task <Results <Legislator> > FindLegislators(string query = null, Legislator searchPrototype = null) { var parms = new Dictionary <string, object>(); parms.Add("query", query); parms.AddSearchableProperties(searchPrototype); return(await _service.Get <Results <Legislator> >("legislators", parms)); }