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

            var claim = await _claimRepository.GetClaim(id);

            if (claim == null)
            {
                return(NotFound());
            }

            return(Ok(claim));
        }
예제 #2
0
        public async Task <IActionResult> Get([FromRoute] Guid clientId, [FromRoute] Guid policyId,
                                              [FromRoute] Guid claimId)
        {
            if (await _clientRepository.GetClient(clientId) == null ||
                await _policyRepository.GetPolicy(policyId) == null || await _claimRepository.GetClaim(claimId) == null)
            {
                return(NotFound());
            }

            return(Ok(await _documentRepository.GetDocumentsForClaim(claimId)));
        }
예제 #3
0
        public async Task <ResponseModel> LoadClaim(int poId)
        {
            var response = await _claimRepository.GetClaim(poId);

            return(ResponseHelper.GetResponse(response));
        }
예제 #4
0
 public IEnumerable <Claim> GetClaim([FromRoute] int id)
 {
     return(_claimRepository.GetClaim(id));
 }