public ActionResult Details(int id)
        {
            var ticket = this.db.Tickets.GetById(id);
            var ticketDescription = HttpUtility.HtmlDecode(ticket.Description);
            var ticketView = new TicketViewModel
            {
                TicketId = ticket.TicketId,
                Title = ticket.Title,
                Description = ticketDescription,
                PostedOn = ticket.PostedOn,
                PostedBy = ticket.PostedBy.UserName,
                Status = ticket.Status
            };

            return View(ticketView);
        }
        public ActionResult Details(int id)
        {
            var ticket = this.Data.Tickets.GetById(id);
            var model = new TicketViewModel()
            {
                TicketId = ticket.TicketId,
                Description = ticket.Description,
                PostedBy = ticket.PostedBy.UserName,
                PostedOn = ticket.PostedOn,
                Priority = ticket.Priority.ToString(),
                Status = ticket.Status,
                Title = ticket.Title,
                AssignedTo = ticket.AssignedTo.UserName
            };

            return View(model);
        }