Example #1
0
        public IActionResult GetTicketByUserId(string userId)
        {
            var ticket = _ticketData.GetUserTickets(userId);

            if (ticket == null)
            {
                return(NotFound($"Tickets associated with the User Id of {userId} do not exist"));
            }
            return(Ok(_ticketData.GetUserTickets(userId)));
        }