private void LoadLookups(ApiResource apiResource)
 {
     HashTypes = EnumExtensions.ToSelectList <HashType>();
     Types     = PredefinedData.GetSecretTypes().Select(x => new SelectListItem(x, x));
     Secrets   = apiResource.Secrets.Select(ApiResourceMappers.ToModel).ToList();
 }
Пример #2
0
 private void LoadLookups(Client client)
 {
     HashTypes     = EnumExtensions.ToSelectList <HashType>();
     Types         = PredefinedData.GetSecretTypes().Select(x => new SelectListItem(x, x));
     ClientSecrets = client.ClientSecrets.Select(ClientMappers.ToModel).ToList();
 }