Пример #1
0
 protected void btnGuardar_OnClick(object sender, EventArgs e)
 {
     try
     {
         _servicioCatalogo.AgregarRegistro(IdCatalogo, txtDescripcion.Text);
         if (OnAceptarModal != null)
         {
             OnAceptarModal();
         }
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         AlertaGeneral = _lstError;
     }
 }