public List <Ticket> GetAllTickets() { return(_ticketRepo.GetTickets()); }
public ActionResult <IEnumerable <TicketReadDto> > GetAllTickets(int teamID) { var tickets = _repository.GetTickets(); return(Ok(_mapper.Map <IEnumerable <TicketReadDto> >(tickets))); }
public async Task <IActionResult> GetAllTickets() { var ticketItems = await _repository.GetTickets(); return(Ok(_mapper.Map <IEnumerable <TicketReadDto> >(ticketItems))); }