예제 #1
0
        public IActionResult GetTicket(int id)
        {
            var ticket = service.GetTicketInfo(id);

            return(ticket == null?NotFound($"Ticket with id = {id} not found!") as IActionResult
                   : Ok(mapper.Map <TicketDTO>(ticket)));
        }