public ActionResult Edit(int?id) { var contract = id != null?queries.GetSongList(id.Value) : new SongListContract(); var model = new SongListEditViewModel(contract, PermissionContext); return(View(model)); }
public ActionResult Details(int id = invalidId) { if (id == invalidId) { return(NoId()); } var contract = queries.GetSongList(id); return(View(contract)); }
public SongListContract GetSongListById(int id) { var list = songListQueries.GetSongList(id); return(list); }