Exemple #1
0
        public async Task <OperationResponse> CreateApiResourceScopesAsync(CommonInputDto input)
        {
            input.NotNull(nameof(input));
            var entity = await _apiResourceDomainService.GetLoadAsync(input.Id);

            entity.AddScopes(input.Allowed);
            return(await _apiResourceDomainService.UpdateAsync(entity));
        }
        public async Task <OperationResponse> CreateRedirectUriAsync(CommonInputDto input)
        {
            input.NotNull(nameof(input));
            var cliententity = await _clientDomainService.GetLoadByIdAsync(input.Id);

            //cliententity.AddRedirectUris(input.Allowed);
            return(await _clientDomainService.UpdateAsync(cliententity));
        }