Esempio n. 1
0
        public async Task <IActionResult> OnGetAsync()
        {
            var scopes = await ApiScopeService.GetListAsync();

            this.ApiScopes = Mapper.Map <IEnumerable <IdentityServer4.EntityFramework.Entities.ApiScope>, IEnumerable <ApiScopeVM> >(scopes);
            return(Page());
        }
Esempio n. 2
0
 public async Task OnGet()
 {
     this.ApiScopes = (await ApiScopeService.GetListAsync()).Select(x => new ApiScopeVM()
     {
         Name        = x.Name,
         DisplayName = x.DisplayName
     });
 }