public async void Get() { var client = new HttpClient(); var response = await client.GetAsync("http://localhost:8080/Actividad5/Tablero"); if (response.IsSuccessStatusCode) { var jsonString = await response.Content.ReadAsStringAsync(); Model = JsonConvert.DeserializeObject <IEnumerable <DatosPelicula> >(jsonString); AlHaberCambios?.Invoke(); } }
public async void Get() { var client = new HttpClient(); var response = await client.GetAsync("http://vuelos.itesrc.net/Tablero"); if (response.IsSuccessStatusCode) { var jsonString = await response.Content.ReadAsStringAsync(); Model = JsonConvert.DeserializeObject <IEnumerable <DatosVuelo> >(jsonString); AlHaberCambios?.Invoke(); } }