Exemplo n.º 1
0
        public IActionResult Index()
        {
            string       json  = HttpSolicitudes.GetHTTP(ControladorAPI);
            List <test1> Lista = new List <test1>();

            Lista = JsonConvert.DeserializeObject <List <test1> >(json);
            return(View(Lista));
        }
Exemplo n.º 2
0
        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));
        }