public ActionResult PostTicket(AddTicketViewModel ticketVm)
        {
            if (!ModelState.IsValid)
            {
                var viewModel = new AddTicketViewModel()
                {
                    AddTicket = ticketVm.AddTicket,
                    StudentId = ticketVm.StudentId
                };

                return(View("AddTicket", viewModel));
            }

            var newTicket = new AddTicket()
            {
                TicketNumber           = ticketVm.AddTicket.TicketNumber,
                TicketLessonsRemaining = ticketVm.AddTicket.TicketLessonsRemaining
            };

            var ticketAsJson  = JsonConvert.SerializeObject(newTicket);
            var responseAsync = HttpHelper.Post(ticketAsJson, "api/tickets");

            Thread.Sleep(1500); // Using this to
            LinkStudentTicket(ticketVm.StudentId, ticketVm.AddTicket.TicketNumber);
            Thread.Sleep(1500);
            return(RedirectToAction("StudentProfile", "Profile", new { id = ticketVm.StudentId }));
        }
        // GET: Ticket
        public ActionResult AddTicket(int id)
        {
            var createNewTicketVm = new AddTicketViewModel()
            {
                AddTicket = new AddTicket(),
                StudentId = id
            };

            return(View(createNewTicketVm));
        }