Beispiel #1
0
 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"));
 }