コード例 #1
0
        public IActionResult OnGet(int id)
        {
            var user = m_userManager.Users.Include(x => x.ApiKeys).FirstOrDefault(x => x.UserName == User.Identity.Name).ApiKeys.ToList();

            foreach (var item in user)
            {
                if (item.Source == Source.VSTS)
                {
                    var token = item.VSTStoken;

                    Value = m_VSTSService.GetProjects(token);
                }
            }


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

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

            return(Page());
        }