public ActionResult UpdateEntry(Song song) { SongBookDAL dal = new SongBookDAL(); dal.UpdateSong(song); return(RedirectToAction("Success")); }
public ActionResult UpdateEntry(int databaseId) { SongBookDAL dal = new SongBookDAL(); Song song = dal.IdSearch(databaseId); return(View("UpdateEntry", song)); }
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)); }
public ActionResult SubmitSong(Song song) { SongBookDAL dal = new SongBookDAL(); dal.InputSongs(song); return(RedirectToAction("Success")); }
public ActionResult DisplayAllSongs(SongBookDAL dal) { var songs = dal.ReturnAllSongs(); return(View("DisplayAllSongs", songs)); }