Example #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));
        }
Example #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)));
        }
Example #3
0
        public async Task <ResponseModel> LoadClaim(int poId)
        {
            var response = await _claimRepository.GetClaim(poId);

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