예제 #1
0
        public ActionResult UpdateEntry(Song song)
        {
            SongBookDAL dal = new SongBookDAL();

            dal.UpdateSong(song);

            return(RedirectToAction("Success"));
        }
예제 #2
0
        public ActionResult UpdateEntry(int databaseId)
        {
            SongBookDAL dal = new SongBookDAL();

            Song song = dal.IdSearch(databaseId);

            return(View("UpdateEntry", song));
        }
예제 #3
0
        public ActionResult SearchResult(SongSearchModel search)
        {
            SongBookDAL dal = new SongBookDAL();

            var songs = dal.SearchSongs(search.Title, search.Composer, search.Lyricist, search.Source, search.Genre, search.Gender, search.VoicePart);

            return(View("SearchResult", songs));
        }
예제 #4
0
        public ActionResult SubmitSong(Song song)
        {
            SongBookDAL dal = new SongBookDAL();

            dal.InputSongs(song);

            return(RedirectToAction("Success"));
        }
예제 #5
0
        public ActionResult DisplayAllSongs(SongBookDAL dal)
        {
            var songs = dal.ReturnAllSongs();

            return(View("DisplayAllSongs", songs));
        }