Пример #1
0
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var artistVm = await _service.GetArtistOrNullAsync(id.Value);

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

            return(View(artistVm));
        }