//onGet ticket by ID binnenhalen
        public IActionResult OnGet(int id)
        {
            CategoryList = m_ticketService.GetCategories();
            ApiKey       = m_userService.GetApiKeys(User.Identity.Name);


            var APIkey = m_userManager.Users.Include(x => x.ApiKeys).FirstOrDefault(x => x.UserName == User.Identity.Name).ApiKeys.ToList();

            if (APIkey.Count() == 0)
            {
                //hier kan je nog error handling voorzien
            }
            else
            {
                foreach (var item in APIkey)
                {
                    if (item.Source == Source.VSTS)
                    {
                        var token = item.VSTStoken;
                        m_VSTSService.GetAllBugs(token);
                    }
                    else
                    {
                        //hier kan je nog error handling voorzien
                    }
                }
            }

            Ticket = m_ticketService.GetTicketById(id);
            Input  = new InputModel()
            {
                TicketId = id
            };

            if (Ticket == null)
            {
                return(RedirectToPage("../Tickets/MyTickets"));
            }


            UserDetails = m_userService.GetUserByMail(Ticket.TicketRequestor);
            if (m_userInCompanyService.GetUsersInCompany().FirstOrDefault(x => x.UserId == UserDetails.Id) == null)
            {
                Page();
            }
            else
            {
                CompanyDetails = GetCompanyDetails(UserDetails.Id);
            }


            return(Page());
        }