Exemplo n.º 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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public async Task <AjaxResult> CreateRedirectUriAsync([FromBody] CommonInputDto input)
 {
     return((await _clientContract.CreateRedirectUriAsync(input)).ToAjaxResult());
 }
 public async Task <AjaxResult> CreateApiResourceScopesAsync([FromBody] CommonInputDto input)
 {
     return((await _apiResourceContract.CreateApiResourceScopesAsync(input)).ToAjaxResult());
 }