public async Task <GetPolicyViewModel> FetchPolicyAsync(string policyNumber, ProductType productType) { var policy = await _policyRepository.FetchByParameterAsync(policyNumber, productType); if (policy == null) { _logger.LogInformation($"No Policy found for the given policy number {policyNumber} and product type {productType.ToString()}"); } var policyViewModel = _mapper.Map <GetPolicyViewModel>(policy); return(policyViewModel); }