public CompetitionContainer CompetitionSelectActive()
        {
            //check permission: registered
              PrincipalPermission permReg = new PrincipalPermission(Thread.CurrentPrincipal.Identity.Name, "Registered");
              permReg.Demand();

              TraceCallEnterEvent.Raise();
              try
              {
            CompetitionContainer result;
            DataSet entitySet = m_DataContext.ndihdCompetitionSelectActive();
            result = new CompetitionContainer(entitySet.Tables[0]);
            TraceCallReturnEvent.Raise();
            return result;
              }
              catch (Exception ex)
              {
            ExceptionManager.Publish(ex);
            TraceCallReturnEvent.Raise(false);
            throw;
              }
        }
        public CompetitionContainer CompetitionSelectFiltered(Competition filter)
        {
            // Check permission: Admin
              PrincipalPermission permAdmin = new PrincipalPermission(Thread.CurrentPrincipal.Identity.Name, "Administrator");
              permAdmin.Demand();

              TraceCallEnterEvent.Raise();
              try
              {
            CompetitionContainer result;
            DataSet entitySet = m_DataContext.ndihdCompetitionSelectFiltered(
              filter.FilterOnVisible);
            result = new CompetitionContainer(entitySet.Tables[0]);
            TraceCallReturnEvent.Raise();
            return result;
              }
              catch (Exception ex)
              {
            ExceptionManager.Publish(ex);
            TraceCallReturnEvent.Raise(false);
            throw;
              }
        }
 public virtual CompetitionContainer CompetitionSelectAll()
 {
     TraceCallEnterEvent.Raise();
       try
       {
     CompetitionContainer result;
     DataSet entitySet = m_DataContext.ndihdCompetitionSelectAll();
     result = new CompetitionContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }