Esempio n. 1
0
        public virtual async Task DeletePropertyAsync(IdentityResourcePropertyGetByKeyDto identityResourcePropertyGetByKey)
        {
            var identityResource = await IdentityResourceRepository.GetAsync(identityResourcePropertyGetByKey.IdentityResourceId);

            if (!identityResource.Properties.ContainsKey(identityResourcePropertyGetByKey.Key))
            {
                throw new UserFriendlyException(L[AbpIdentityServerErrorConsts.IdentityResourcePropertyNotFound, identityResourcePropertyGetByKey.Key]);
            }
            identityResource.Properties.Remove(identityResourcePropertyGetByKey.Key);
            await IdentityResourceRepository.UpdateAsync(identityResource);
        }
Esempio n. 2
0
 public virtual async Task DeletePropertyAsync(IdentityResourcePropertyGetByKeyDto identityResourcePropertyGetByKey)
 {
     await IdentityResourceAppService.DeletePropertyAsync(identityResourcePropertyGetByKey);
 }