Exemple #1
0
        public String DetalleInfraestructura(string idservicionegocio)
        {
            string sError = "";

            JavaScriptSerializer varjon = new JavaScriptSerializer();
            DetalleServicio      ctrlDetalleServicio = new DetalleServicio();

            ctrlDetalleServicio.CargaInfraestructura(idservicionegocio, out sError);

            ViewBag.Error = sError;

            return(varjon.Serialize(ctrlDetalleServicio.infraestructuraJson));
        }
Exemple #2
0
        public ActionResult Ver(string id)
        {
            try
            {
                string sError = "";

                JavaScriptSerializer varjon = new JavaScriptSerializer();
                DetalleServicio      ctrlDetalleServicio = new DetalleServicio();

                ctrlDetalleServicio.CargaInfraestructura(id, out sError);

                ViewBag.Error             = sError;
                ViewBag.IdServicioNegocio = id;
                ViewBag.ServicioNegocio   = ctrlDetalleServicio.CargaNombreServicioNegocio(id, out sError);

                return(View(ctrlDetalleServicio));
            }
            catch (Exception e)
            {
                ViewBag.Error = e;
                return(View(ViewBag.Error));
            }
        }