public IActionResult DisplayAllTicketFiles(int id) { var ticket = service.FindTicket(id); if (ticket == null) { return(NotFound()); } var allFiles = new DisplayAllTicketFilesViewModel { Files = service.DisplayAllTicketFiles(id) }; return(View(allFiles)); }
public async Task <IActionResult> TicketFiles(int id) { var ticket = await service.FindTicket(id); if (ticket == null) { return(NotFound()); } var allFiles = new DisplayAllTicketFilesViewModel { Files = await service.TicketFiles(id) }; return(View(allFiles)); }