public ActionResult TicketDetails(int?id)
        {
            var ticket = bugTrackerHelper.GetCurrentTicketById(id.Value);
            var model  = new TicketDetailsViewModel();

            model                   = Mapper.Map <TicketDetailsViewModel>(ticket);
            model.CanCreate         = (bool)ViewData["CanCreate"];
            model.TicketAttachments = bugTrackerHelper.GetListAttachments(ticket);
            model.TicketComments    = bugTrackerHelper.GetListComments(ticket);
            model.TicketHistories   = bugTrackerHelper.GetListHistories(ticket);

            return(View(model));
        }