public void Update(ECorporation eCorporation)
 {
     eCorporation.Validar();
     dCorporation.Update(eCorporation);
     eCorporation.Audit.TypeEvent = "Update";
     bAudit.Insert(eCorporation.Audit);
 }
 public void Insert(ECorporation eCorporation)
 {
     eCorporation.Validar();
     dCorporation.Insert(eCorporation);
     if (dCorporation.ExistsPrimaryKey())
     {
         Message = string.Format("El código de Corporación '{0}' ya existe en el Sistema, no se puede crear el registro.", eCorporation.CodeCorporation);
         throw new Exception(Message);
     }
     eCorporation.Audit.TypeEvent = "Insert";
     bAudit.Insert(eCorporation.Audit);
 }