// GET: Songs/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var song = await _songsRepo.GetSongByIdAsync(id); if (song == null) { return(NotFound()); } return(View(song)); }
// GET: Songs/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var song = await _songsRepo.GetSongByIdAsync(id); if (song == null) { return(NotFound()); } return(View(song)); }