public IActionResult Index() { string json = HttpSolicitudes.GetHTTP(ControladorAPI); List <test1> Lista = new List <test1>(); Lista = JsonConvert.DeserializeObject <List <test1> >(json); return(View(Lista)); }
public IActionResult Index() { test2 datos1 = new test2(); string url = "https://geocode.xyz/Hauptstr.,+57632+Caracas?json=1"; string respuesta = HttpSolicitudes.GetHTTP(url); datos1 = JsonConvert.DeserializeObject <test2>(respuesta); return(View(datos1)); }