Example #1
0
        public ConcertResponse GetConcert(long id)
        {
            var requestId = Guid.NewGuid().ToString("N");

            RequestValidator.ValidateWebRequestHeaders(Request);

            return(_concertService.GetConcert(requestId, id));
        }
Example #2
0
        public async Task <IActionResult> GetConcert(int id)
        {
            var concert = await concertService.GetConcert(id);

            return(Ok(concert));
        }
Example #3
0
 public IHttpActionResult GetConcert(int id)
 {
     return(Ok(_concertService.GetConcert(id)));
 }