Ejemplo n.º 1
0
        //Returning true if the clue built, and false otherwise.
        private bool buildClueBySongsSkills()
        {
            Song songForClue = db.SongFromSongsSkillsByYear(this.User_email, this.albumForQuestion.Year);

            this.Clue = "At the same year that the song <song_name> of <artist_name> was released.";
            if (songForClue != null)
            {
                this.Clue = this.Clue.Replace("<song_name>", songForClue.Song_name);
                this.Clue = this.Clue.Replace("<artist_name>", songForClue.Artist_name);
                return(true);
            }
            return(false);
        }