public async Task <IActionResult> PostScope(int id, [FromBody] ApiScopeApiDto apiScopeApi) { var apiScope = apiScopeApi.ToApiResourceApiModel <ApiScopesDto>(); apiScope.ApiResourceId = id; await _apiResourceService.GetApiResourceAsync(apiScope.ApiResourceId); await _apiResourceService.AddApiScopeAsync(apiScope); return(Ok()); }