public ActionResult Modificar(ct_cbtecble_Plantilla_Info model)
        {
            model.lst_cbtecble_plantilla_det = CbteCble_PlantillaDet_Lista.get_list(model.IdTransaccionSession);
            model.IdUsuarioModificacion      = SessionFixed.IdUsuario;

            if (!Validar(model, ref mensaje))
            {
                ViewBag.mensaje = mensaje;
                cargar_combos(model.IdEmpresa);
                return(View(model));
            }

            if (!bus_CbteCble_Plantilla.ModificarBD(model))
            {
                cargar_combos(model.IdEmpresa);
                return(View(model));
            }
            return(RedirectToAction("Consultar", new { IdEmpresa = model.IdEmpresa, IdPlantilla = model.IdPlantilla, Exito = true }));
        }
        public ActionResult Modificar(ct_cbtecble_Plantilla_Info model)
        {
            model.lst_cbtecble_plantilla_det = CbteCble_PlantillaDet_Lista.get_list(model.IdTransaccionSession);
            model.IdUsuarioModificacion      = Session["IdUsuario"].ToString();

            if (!Validar(model, ref mensaje))
            {
                ViewBag.mensaje = mensaje;
                cargar_combos(model.IdEmpresa);
                return(View(model));
            }

            if (!bus_CbteCble_Plantilla.ModificarBD(model))
            {
                cargar_combos(model.IdEmpresa);
                return(View(model));
            }
            return(RedirectToAction("Index"));
        }