示例#1
0
        public IActionResult GetAllTickets()
        {
            var tickets = ticketsService.GetAll();

            if (tickets.Count == 0)
            {
                return(NotFound("Unable to find any tickets"));
            }

            return(Ok(tickets));
        }