Ejemplo n.º 1
0
        public async Task <ActionResult <Track> > Get(int id)
        {
            var track = await _dataService.GetTrack(id);

            if (track == null)
            {
                return(new NotFoundResult());
            }

            return(new ObjectResult(track));
        }