Пример #1
0
        private bool guardarDB()
        {
            try
            {
                bool res = false;
                if (!validar())
                {
                    return(false);
                }

                get_info();

                if (bus_imp_parametro.guardarDB(info_imp_parametro))
                {
                    MessageBox.Show("Registro guardado exitósamente", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    res = true;
                }

                return(res);
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }
        }
 public ActionResult Index(imp_parametro_Info model)
 {
     if (!bus_parametro.guardarDB(model))
     {
         ViewBag.mensaje = "No se pudieron actualizar los registros";
     }
     cargar_combos(model.IdEmpresa);
     return(View(model));
 }