Esempio n. 1
0
        public async Task <IActionResult> GetFlightTickets(int id)
        {
            var tickets = await service.GetFlightTicketsInfoAsync(id);

            return(tickets == null?NotFound($"No tickets for flight with id = {id} found!") as IActionResult
                   : Ok(mapper.Map <IEnumerable <TicketDTO> >(tickets)));
        }