public ActionResult AddTicket(AddTicketViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                var user = this.Data.AppUsers.All().FirstOrDefault(x => x.UserName == User.Identity.Name);
                user.Points++;

                var ticket = new Ticket()
                {
                    Author = user,
                    CategoryId = int.Parse(viewModel.CategoryId),
                    Description = viewModel.Description,
                    Priority = viewModel.Priority,
                    ScreenUrl = viewModel.ScreenUrl,
                    Title = viewModel.Title
                };

                this.Data.Tickets.Add(ticket);
                this.Data.SaveChanges();
                return RedirectToAction("List");
            }

            viewModel.PriorityTypeDropdown = GetPriorityItems();
            viewModel.CategoryDropdown = GetCategoriesItems();

            return View(viewModel);
        }
        public ActionResult AddTicket()
        {
            var ticketVM = new AddTicketViewModel();
            ticketVM.PriorityTypeDropdown = GetPriorityItems();
            ticketVM.CategoryDropdown = GetCategoriesItems();

            return View(ticketVM);
        }