public async Task GetAsync()

in src/Relecloud.Web.CallCenter.Api/Controllers/ConcertController.cs [34:52]


        public async Task<ActionResult> GetAsync(int id)
        {
            try
            {
                var concert = await this.concertRepository.GetConcertByIdAsync(id);
                if (concert == null)
                {
                    return NotFound();
                }
                concert.NumberOfTicketsForSale = await CountAvailableTicketsAsync(concert.Id);

                return Ok(concert);
            }
            catch (Exception ex)
            {
                this.logger.LogError(ex, "Unhandled exception from ConcertController.CreateAsync");
                return Problem("Unable to Get the concert");
            }
        }