Beispiel #1
0
        public RR.MotorSavedQuotationResponse GetMotorRenewalDetails(string documentNo, string agency, string agentCode, int renewalCount)

        {
            try
            {
                BLO.MotorSavedQuotationResponse result = _motorInsuranceRepository.GetRenewMotorPolicy(documentNo, agency, agentCode, renewalCount);
                return(_mapper.Map <BLO.MotorSavedQuotationResponse, RR.MotorSavedQuotationResponse>(result));
            }
            catch (Exception ex)
            {
                return(new RR.MotorSavedQuotationResponse
                {
                    IsTransactionDone = false,
                    TransactionErrorMessage = ex.Message
                });
            }
        }
Beispiel #2
0
 public RR.MotorSavedQuotationResponse GetSavedQuotationDetails(string documentNo, string type, string agentCode,
                                                                bool isendorsement, long endorsementid, int renewalcount = 0)
 {
     try
     {
         BLO.MotorSavedQuotationResponse result = _motorInsuranceRepository.GetSavedMotorPolicy(documentNo, type,
                                                                                                agentCode, isendorsement, endorsementid, renewalcount);
         return(_mapper.Map <BLO.MotorSavedQuotationResponse, RR.MotorSavedQuotationResponse>(result));
     }
     catch (Exception ex)
     {
         return(new RR.MotorSavedQuotationResponse
         {
             IsTransactionDone = false,
             TransactionErrorMessage = ex.Message
         });
     }
 }