public ActionResult SetNotifLayoutBuzonApp(int TipoNotificacion_ID)
        {
            try { this.SIS_NotifTemplatesBuzonAppProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesBuzonAppBusiness((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"]); } catch (Exception ex) { return(RedirectToAction("SesionExpired", "Inicio", new { Area = "", Mensaje = ex.Message })); }

            //ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesBuzonApp OBJSIS_NotifTemplatesBuzon = SIS_NotifTemplatesBuzonAppProxy.GetByID(NotifTemplatesBuzonApp_ID);
            ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesBuzonApp OBJSIS_NotifTemplatesBuzon = ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesBuzonAppBusiness.GetByTipoNotificacion((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"], TipoNotificacion_ID);

            //ViewBag.TipoOrigenDatos_ID = new SelectList(ADESCOMBUSINESS.Areas.Utilerias.Methods.SIS_TipoOrigenDatosCatBusiness.GetByTipoDatos((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"], "NOT"), "TipoOrigenDatos_ID", "TOD_Descripcion", OBJNotifTemplatesEmail.TipoOrigenDatos_ID);
            ViewBag.TipoOrigenDatos_ID = ADESCOMBUSINESS.Areas.Utilerias.Methods.SIS_TipoOrigenDatosCatBusiness.GetViewByID((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"], OBJSIS_NotifTemplatesBuzon.TipoOrigenDatos_ID);

            return(View(OBJSIS_NotifTemplatesBuzon));
        }
        public ActionResult SetNotifLayoutBuzonApp(ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesBuzonApp Registro)
        {
            try { this.SIS_NotifTemplatesBuzonAppProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesBuzonAppBusiness((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_NotifTemplatesBuzonAppProxy.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((ADESCOMBUSINESS.DataAccess.Models.LoginRS)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));
        }