public async Task <IActionResult> IdentityResourcePropertyDelete(IdentityResourcePropertiesDto identityResourceProperty) { await _identityResourceService.DeleteIdentityResourcePropertyAsync(identityResourceProperty); return(Success(new { Id = identityResourceProperty.IdentityResourceId })); }
public async Task <IActionResult> IdentityResourcePropertyDelete(IdentityResourcePropertiesDto identityResourceProperty) { await _identityResourceService.DeleteIdentityResourcePropertyAsync(identityResourceProperty); SuccessNotification(_localizer["SuccessDeleteIdentityResourceProperty"], _localizer["SuccessTitle"]); return(RedirectToAction(nameof(IdentityResourceProperties), new { Id = identityResourceProperty.IdentityResourceId })); }
public async Task <IActionResult> RemoveIdentityProperties([FromBody] int propertiesId) { if (!ModelState.IsValid) { return(BadRequest(ModelStateErrors)); } var result = await _identityResourceService.DeleteIdentityResourcePropertyAsync(propertiesId); return(ResultResponse(result, "删除身份资源属性成功")); }
public async Task <IActionResult> DeleteProperty(int propertyId) { var identityResourceProperty = new IdentityResourcePropertiesDto { IdentityResourcePropertyId = propertyId }; await _identityResourceService.GetIdentityResourcePropertyAsync(identityResourceProperty.IdentityResourcePropertyId); await _identityResourceService.DeleteIdentityResourcePropertyAsync(identityResourceProperty); return(Ok()); }