public string InsertNewChord(Chord newChord)
 {
     if (IsNewChord(newChord))
     {
         chordList = unknownChord.InsertChord(newChord);
         ChordDTO.InsertNewChord(chordList, dao.DBChords); //need to make sure to query chord lenght and clear old data out of the DAO
         return("Chord added");
     }
     else
     {
         return("There was a problam inserting that chord.");
     }
 }
Example #2
0
        //Insert Chord if new
        public string InsertChord(Chord chord)
        {
            if (chord.IsNewChord(chord))
            {
                //insert chord + all variations of it root c through b
                List <Chord> chords = GenAllChordsFromEntry(chord);
                ChordDTO.InsertNewChord(chords);
            }
            else
            {
                //Don't insert chord
                return("Chord already exists.");
            }

            return("Chord saved successfuly");
        }