public IActionResult InsertRating(int id) { var song = repo.GetSong(id); var valueRange = new List <int>() { 1, 2, 3, 4, 5 }; song.SongRating = new Rating(); song.SongRating.Range = valueRange; return(View(song)); }
public IActionResult InsertRating(int id) { var song = repo.GetSong(id); var valueRange = new List <int>() { 1, 2, 3, 4, 5 }; song.SongRating = new Rating(); song.SongRating.Range = valueRange; return(View(song)); }