コード例 #1
0
 public ContestEntryBLL(int?contestEntryId)
 {
     if (contestEntryId != null && contestEntryId > 0)
     {
         loadObject(ContestEntryDAL.GetByContestEntryID(contestEntryId));
     }
 }
コード例 #2
0
        public static DataTable ListLeadingEntries(int contestId)
        {
            DataSet   ds = ContestEntryDAL.ListLeadingEntries(contestId);
            DataTable dtLeadingEntries = new DataTable();

            if (ds.Tables.Count > 0)
            {
                dtLeadingEntries = ds.Tables[0];
            }

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

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

            return(false);
        }
コード例 #4
0
 public void Update()
 {
     ContestEntryDAL.UpdateContestEntry(this.ContestEntryID, this.ContestID, this.CustomerID, this.Title, this.Description,
                                        this.FirstName, this.LastName, this.Email, this.VideoURL, this.EmbedVideoURL, this.Zipcode, this.PeoplesChoiceScore);
 }
コード例 #5
0
 public void Save()
 {
     ContestEntryDAL.SaveContestEntry(this.ContestID, this.CustomerID, this.Title, this.Description,
                                      this.FirstName, this.LastName, this.Email, this.VideoURL, this.EmbedVideoURL, this.Zipcode);
 }