public void Update(EProductType eProductType)
 {
     eProductType.Validar();
     dProductType.Update(eProductType);
     eProductType.Audit.TypeEvent = "Update";
     bAudit.Insert(eProductType.Audit);
 }
 public void Insert(EProductType eProductType)
 {
     eProductType.Validar();
     dProductType.Insert(eProductType);
     if (dProductType.ExistsPrimaryKey())
     {
         Message = string.Format("El código de tipo de producto '{0}' ya existe en el Sistema, no se puede crear el registro.", eProductType.CodeProductType);
         throw new Exception(Message);
     }
     if (dProductType.ExistsReference())
     {
         Message = string.Format("El código de Sunat '{0}' no existe en el Sistema", eProductType.CodeSunatExistence);
         throw new Exception(Message);
     }
     eProductType.Audit.TypeEvent = "Insert";
     bAudit.Insert(eProductType.Audit);
 }