Ejemplo n.º 1
0
        public JsonResult GetLocacionPuertoPrincipal(int puerto)
        {
            var    respuesta     = new { mensaje = "", total = 0, html = "" };
            string locacion_html = "";

            try
            {
                locacion_html = Mantenedores.GetLocacionesPuertoPrincipal_Html(puerto);
                respuesta     = new { mensaje = "", total = 1, html = locacion_html };
                return(Json(respuesta));
            }
            catch (Exception ex)
            {
                respuesta = new { mensaje = ex.Message.ToString(), total = 0, html = "" };
                return(Json(respuesta));
            }
        }