public IActionResult findAll()
        {
            try
            {
                List <Model.Ticket> tickets = ticketsService.findAll();

                if (tickets.Count == 0)
                {
                    return(NotFound());
                }

                return(Ok(tickets));
            }
            catch
            {
                return(StatusCode(500));
            }
        }
Esempio n. 2
0
        public void findAll()
        {
            List <Model.Ticket> result = iTicketService.findAll();

            Assert.NotEmpty(result);
        }