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)); }
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))); }
public async Task <ResponseModel> LoadClaim(int poId) { var response = await _claimRepository.GetClaim(poId); return(ResponseHelper.GetResponse(response)); }
public IEnumerable <Claim> GetClaim([FromRoute] int id) { return(_claimRepository.GetClaim(id)); }