public async Task <IActionResult> AddApiResourceScopeClaimAsync(string subject, string id, ApiResourceScopeClaimValue model)
        {
            if (string.IsNullOrWhiteSpace(subject) || string.IsNullOrWhiteSpace(id))
            {
                return(NotFound());
            }

            if (model == null)
            {
                ModelState.AddModelError("", Messages.ApiResourceScopeClaimNeeded);
            }

            if (ModelState.IsValid)
            {
                var result = await _service.AddScopeClaimAsync(subject, id, model.Type);

                if (result.IsSuccess)
                {
                    return(NoContent());
                }

                ModelState.AddErrors(result);
            }

            return(BadRequest(ModelState.ToError()));
        }