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

            //ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesEmail OBJNotifTemplatesEmail = SIS_NotifTemplatesEmailProxy.GetByID(NotifTemplatesEmail_ID);
            ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesEmail OBJNotifTemplatesEmail = ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesEmailBusiness.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"], OBJNotifTemplatesEmail.TipoOrigenDatos_ID);

            return(View(OBJNotifTemplatesEmail));
        }
        public ActionResult SetNotifLayoutEmail(ADESCOMBUSINESS.Areas.Configuracion.Models.SIS_NotifTemplatesEmail Registro)
        {
            try { this.SIS_NotifTemplatesEmailProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.SIS_NotifTemplatesEmailBusiness((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_NotifTemplatesEmailProxy.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));
        }