コード例 #1
0
        public ContestJudgeBLL Save()
        {
            DataSet dsContestJudge = ContestJudgeDAL.SaveContestJudge(this.ContestID, this.CustomerID, this.FirstName,
                                                                      this.LastName, this.Email, this.Zipcode, this.ScreenName, this.Password);

            return(new ContestJudgeBLL(dsContestJudge));
        }
コード例 #2
0
        public ContestJudgeBLL(string email, string password, int contestId)
        {
            DataSet dsContestJudge = ContestJudgeDAL.Login(email, contestId);

            if (validateLogin(dsContestJudge, password))
            {
                loadObject(dsContestJudge);
            }
        }
コード例 #3
0
        public static bool ScreenNameExists(string screenname, int contestId)
        {
            DataSet dsScreenName = ContestJudgeDAL.ScreenNameExists(screenname, contestId);

            if (dsScreenName.Tables.Count > 0)
            {
                if (dsScreenName.Tables[0].Rows.Count > 0)
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #4
0
        public static bool EmailExists(string email, int contestId)
        {
            DataSet dsEmail = ContestJudgeDAL.EmailExists(email, contestId);

            if (dsEmail.Tables.Count > 0)
            {
                if (dsEmail.Tables[0].Rows.Count > 0)
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #5
0
        public static bool EmailUnsubscribe(string email, int contestJudgeId, int optIn)
        {
            DataSet dsContestJudge = ContestJudgeDAL.EmailUnsubscribe(email, contestJudgeId, optIn);

            if (dsContestJudge.Tables.Count > 0)
            {
                if (dsContestJudge.Tables[0].Rows.Count > 0)
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #6
0
 public void Update()
 {
     ContestJudgeDAL.UpdateContestJudge(this.ContestJudgeID, this.ContestID, this.FirstName, this.LastName,
                                        this.Email, this.Zipcode, this.VoteContestEntryID, this.ScreenName, this.Password);
 }