Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetSong(int id)
        {
            Song song = await dbRepository.FindSongAsync(id);

            if (song == null)
            {
                return(NotFound());
            }

            return(Ok(song));
        }