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)); }
public ContestJudgeBLL(string email, string password, int contestId) { DataSet dsContestJudge = ContestJudgeDAL.Login(email, contestId); if (validateLogin(dsContestJudge, password)) { loadObject(dsContestJudge); } }
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); }
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); }
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); }
public void Update() { ContestJudgeDAL.UpdateContestJudge(this.ContestJudgeID, this.ContestID, this.FirstName, this.LastName, this.Email, this.Zipcode, this.VoteContestEntryID, this.ScreenName, this.Password); }