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); }
public virtual async Task DeletePropertyAsync(IdentityResourcePropertyGetByKeyDto identityResourcePropertyGetByKey) { await IdentityResourceAppService.DeletePropertyAsync(identityResourcePropertyGetByKey); }