public RR.HomeSavedQuotationResponse GetHomeOracleRenewalPolicy(string documentNo, string agency, string agentCode) { try { BLO.HomeSavedQuotationResponse result = _homeInsuranceRepository.GetOracleRenewHomePolicy(documentNo, agency, agentCode); return(_mapper.Map <BLO.HomeSavedQuotationResponse, RR.HomeSavedQuotationResponse>(result)); } catch (Exception ex) { return(new RR.HomeSavedQuotationResponse { IsTransactionDone = false, TransactionErrorMessage = ex.Message }); } }
public RR.HomeSavedQuotationResponse GetHomeSavedQuotationPolicy(string documentNo, string type, string agentCode, bool isendorsement, long endorsementid, int renewalCount) { try { BLO.HomeSavedQuotationResponse result = _homeInsuranceRepository.GetSavedQuotationPolicy(documentNo, "", agentCode, isendorsement, endorsementid, renewalCount); return(_mapper.Map <BLO.HomeSavedQuotationResponse, RR.HomeSavedQuotationResponse>(result)); } catch (Exception ex) { return(new RR.HomeSavedQuotationResponse { IsTransactionDone = false, TransactionErrorMessage = ex.Message }); } }