public ContestEntryBLL(int?contestEntryId) { if (contestEntryId != null && contestEntryId > 0) { loadObject(ContestEntryDAL.GetByContestEntryID(contestEntryId)); } }
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); }
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); }
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); }
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); }