public IActionResult GetAllTickets() { var tickets = service.GetAllTicketsInfo(); return(tickets == null?NotFound("No tickets found!") as IActionResult : Ok(mapper.Map <IEnumerable <TicketDTO> >(tickets))); }
public IActionResult GetAllTickets() { var tickets = service.GetAllTicketsInfo(); return(tickets == null?NotFound("No tickets found!") as IActionResult : Ok(tickets)); }