Example #1
0
        // displays Update view for printout
        public IActionResult Confirmation(int ticketId, int deviceId, int customerId, Guid updateId)
        {
            var model = new ConfirmationViewModel
            {
                Ticket   = context.Tickets.Find(ticketId),
                Device   = context.Devices.Find(deviceId),
                Customer = context.Customers.Find(customerId),
                Update   = _updates.Get(updateId)
            };

            return(View(model));
        }