public ActionResult SetNotifLayoutPushNotif(int TipoNotificacion_ID) { try { this.SIS_NotifTemplatesPushNotifProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesPushBusiness((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"]); } catch (Exception ex) { return(RedirectToAction("SesionExpired", "Inicio", new { Area = "", Mensaje = ex.Message })); } //ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesPush OBJSIS_NotifTemplatesPush = SIS_NotifTemplatesPushNotifProxy.GetByID(NotifTemplatesPush_ID); ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesPush OBJSIS_NotifTemplatesPush = ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesPushBusiness.GetByTipoNotificacion((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"], TipoNotificacion_ID); //ViewBag.TipoOrigenDatos_ID = new SelectList(ADESCOMBUSINESS.Areas.Utilerias.Methods.SIS_TipoOrigenDatosCatBusiness.GetByTipoDatos((TSIDATAACCESS.Models.SEG_InsLoginResponse)Session["InfoUser"], "NOT"), "TipoOrigenDatos_ID", "TOD_Descripcion", OBJNotifTemplatesSMS.TipoOrigenDatos_ID); ViewBag.TipoOrigenDatos_ID = ADESCOMBUSINESS.Areas.Utilerias.Methods.SIS_TipoOrigenDatosCatBusiness.GetViewByID((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"], OBJSIS_NotifTemplatesPush.TipoOrigenDatos_ID); return(View(OBJSIS_NotifTemplatesPush)); }
public ActionResult SetNotifLayoutPushNotif(ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesPush Registro) { try { this.SIS_NotifTemplatesPushNotifProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesPushBusiness((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"]); } catch (Exception ex) { return(RedirectToAction("SesionExpired", "Inicio", new { Area = "", Mensaje = ex.Message })); } if (ModelState.IsValid) { try { bool Status = SIS_NotifTemplatesPushNotifProxy.Editar(Registro); if (!Status) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ViewBag.Error = "OK"; } catch (Exception ex) { ViewBag.Error = ex.Message; } } //ViewBag.TipoOrigenDatos_ID = new SelectList(ADESCOMBUSINESS.Areas.Utilerias.Methods.SIS_TipoOrigenDatosCatBusiness.GetByTipoDatos((TSIDATAACCESS.Models.SEG_InsLoginResponse)Session["InfoUser"], "NOT"), "TipoOrigenDatos_ID", "TOD_Descripcion", Registro.TipoOrigenDatos_ID); ViewBag.TipoOrigenDatos_ID = ADESCOMBUSINESS.Areas.Utilerias.Methods.SIS_TipoOrigenDatosCatBusiness.GetViewByID((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"], Registro.TipoOrigenDatos_ID); return(View(Registro)); }