Пример #1
0
        public Boolean ModificarDB(tb_Empresa_Info info)
        {
            try
            {
                tb_Empresa_Data epD = new tb_Empresa_Data();


                return(epD.ModificarDB(info));
            }
            catch (Exception ex)
            {
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "ModificarDB", ex.Message), ex)
                      {
                          EntityType = typeof(tb_Empresa_Bus)
                      };
            }
        }
Пример #2
0
 public Boolean ModificarDB(tb_Empresa_Info info, ref string MensajeErrorOut)
 {
     try
     {
         return(Data.ModificarDB(info, ref MensajeErrorOut));
     }
     catch (Exception ex)
     {
         // string MensajeErrorOut = "";
         string arreglo = ToString();
         tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
         tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), eTipoError.ERROR, arreglo, "",
                                                                                   "", "", "", "", DateTime.Now);
         oDataLog.Guardar_Log_Error(Log_Error_sis, ref MensajeErrorOut);
         MensajeErrorOut = ex.InnerException + " " + ex.Message;
         return(false);
     }
 }