public async Task <ActionResult <ApiScopeApiDto> > GetScope(int id, int scopeId)
        {
            var apiScopesDto = await _apiResourceService.GetApiScopeAsync(id, scopeId);

            var apiScopeApiDto = apiScopesDto.ToApiResourceApiModel <ApiScopeApiDto>();

            return(Ok(apiScopeApiDto));
        }
        public async Task <IActionResult> ApiScopes(int id, int?page, int?scope)
        {
            if (id == 0 || !ModelState.IsValid)
            {
                return(NotFound());
            }

            if (scope == null)
            {
                var apiScopesDto = await _apiResourceService.GetApiScopesAsync(id, page ?? 1);

                return(View(apiScopesDto));
            }
            else
            {
                var apiScopesDto = await _apiResourceService.GetApiScopeAsync(id, scope.Value);

                return(View(apiScopesDto));
            }
        }