Beispiel #1
0
        public IActionResult GetTicket(int id)
        {
            var ticket = _ticketData.GetTicket(id);

            if (ticket == null)
            {
                return(NotFound($"Ticket with Id of {id} does not exist"));
            }
            return(Ok(_ticketData.GetTicket(id)));
        }
 public TicketDTO Get(int idTicket)
 {
     return(_ticketData.GetTicket(idTicket));
 }