private async Task <List <Scheduling> > GetComandos(int computerId) { var response = await _client.Get("schedulings/" + computerId); if (!response.IsSuccessStatusCode) { return(null); } var data = await response.Content.ReadAsStringAsync(); if (data == null) { return(new List <Scheduling> ()); } var list = JsonConvert.DeserializeObject <List <Scheduling> > (data); return(JsonConvert.DeserializeObject <List <Scheduling> > (data)); }