Exemple #1
0
        // 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));
        }