Esempio n. 1
0
        public async Task <IActionResult> Get([FromRoute] Guid clientId, [FromRoute] Guid policyId)
        {
            if (await _clientRepository.GetClient(clientId) == null ||
                await _policyRepository.GetPolicy(policyId) == null)
            {
                return(NotFound());
            }

            return(Ok(await _claimRepository.GetClaims(policyId)));
        }
Esempio n. 2
0
        public IActionResult Get()
        {
            var claims = _claimRepository.GetClaims();

            return(new OkObjectResult(claims));
        }