public JsonResult ObtenerDatosNotificacion(int idPerfilNotificacion) { ViewBag.lista_contactos_editar = ""; //int IdPerfilNotificacion_int = Convert.ToInt32(IdPerfilNotificacion); int IdUsuario = Convert.ToInt32(Session["PerfilInterior"]); Clases.PerfilNotificacion datosNotificacion = ConfiguracionViajesModels.ObtenerDatosNotificacion(idPerfilNotificacion); List <Clases.Contacto> contactos = ConfiguracionViajesModels.ObtenerContactosNotificacion(idPerfilNotificacion); datosNotificacion.contactos = contactos; ViewBag.lista_contactos_editar = contactos; ViewBag.idPerfilNotificacion = idPerfilNotificacion; var dato = Json(datosNotificacion, JsonRequestBehavior.AllowGet); dato.MaxJsonLength = Int32.MaxValue; return(dato); }