Ejemplo n.º 1
0
        //Update/Index
        //Takes a string representation of a GUID and returns informaiton
        //aboout the ticket associated with that Guid
        public IActionResult Index(string id)
        {
            var guid   = new Guid(id);
            var ticket = context.Tickets.Find(_updates.GetTicketId(guid));
            var model  = new ConfirmationViewModel
            {
                Ticket = ticket,
                Device = context.Devices.Find(ticket.Device.Id),
                Log    = context.Logs.GetLatestLogByTicketId(ticket.Id),
            };

            return(View(model));
        }