public async Task Details()

in src/Relecloud.Web.CallCenter/Controllers/ConcertController.cs [200:222]


        public async Task<IActionResult> Details(int id)
        {
            try
            {
                var model = await this.concertService.GetConcertByIdAsync(id);
                if (model == null)
                {
                    return NotFound();
                }
                else if (!User.IsInRole(Roles.Administrator) && !model.IsVisible)
                {
                    // user is not authorized to see a hidden concert
                    return RedirectToAction("Index");
                }

                return View(model);
            }
            catch (Exception ex)
            {
                logger.LogError(ex, $"Unable to retrieve concertId: {id}");
                return View();
            }
        }