예제 #1
0
        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));
        }
예제 #2
0
        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));
        }