public async Task <IActionResult> Post([FromBody] IdentityResourceApiDto identityResourceApi) { var identityResourceDto = identityResourceApi.ToIdentityResourceApiModel <IdentityResourceDto>(); await _identityResourceService.AddIdentityResourceAsync(identityResourceDto); return(Ok()); }
public async Task <IActionResult> Put([FromBody] IdentityResourceApiDto identityResourceApi) { var identityResource = identityResourceApi.ToIdentityResourceApiModel <IdentityResourceDto>(); await _identityResourceService.GetIdentityResourceAsync(identityResource.Id); await _identityResourceService.UpdateIdentityResourceAsync(identityResource); return(Ok()); }
public async Task <IActionResult> Post([FromBody] IdentityResourceApiDto identityResourceApi) { var identityResourceDto = identityResourceApi.ToIdentityResourceApiModel <IdentityResourceDto>(); if (!identityResourceDto.Id.Equals(default))