private async Task <JArray> GetElementJArray(string elementName, int offset)
        {
            var response = _client.GetAll(elementName, offset).Result;
            var json     = await response.Content.ReadAsStringAsync();

            return(JArray.Parse(json));
        }
Ejemplo n.º 2
0
        public List <Models.School> GetAllSchools()
        {
            var response = _restClient.GetAll <School>(ResourcePaths.Schools);

            return(_mapper.Map <List <Models.School> >(response));
        }