public async Task <ActionResult <IEnumerable <TicketDTO> > > GetHistoryAsync(int ticketId) { if (await _repo.TicketExistsAsync(ticketId)) { return(Ok(await _repo.ReadTicketHistoryAsync(ticketId))); } return(NotFound("Ticket not found")); }
public async Task <ActionResult <IEnumerable <TicketDTO> > > GetHistoryAsync(int ticketId) { if (await _repo.TicketExistsAsync(ticketId)) { return(Ok(await _repo.ReadTicketHistoryAsync(ticketId))); } return(NotFound("Ticket not found")); }