public AIA.Life.Models.Integration.Services.QuoteInfo FetchServicesQuoteData(AIA.Life.Models.Integration.Services.QuoteInfo objQuote) { // AIA.Life.Models.Integration.Services.QuoteInfo objQuote = new AIA.Life.Models.Integration.Services.QuoteInfo(); #region Call API AIA.Life.Models.Opportunity.LifeQuote objLifeQuote = new AIA.Life.Models.Opportunity.LifeQuote(); objLifeQuote.IsForServices = true; objLifeQuote.QuoteNo = objQuote.QuoteNo; objLifeQuote = WebApiLogic.GetPostComplexTypeToAPI <AIA.Life.Models.Opportunity.LifeQuote>(objLifeQuote, "FetchQuoteData", "Policy"); #endregion if (objLifeQuote != null) { objQuote.objProductDetials = objLifeQuote.objProductDetials; objQuote.QuoteNo = objLifeQuote.QuoteNo; objQuote.AnnualPremium = objLifeQuote.AnnualPremium; objQuote.HalfYearlyPremium = objLifeQuote.HalfYearlyPremium; objQuote.QuaterlyPremium = objLifeQuote.QuaterlyPremium; objQuote.MonthlyPremium = objLifeQuote.MonthlyPremium; objQuote.Cess = objLifeQuote.Cess; objQuote.PolicyFee = objLifeQuote.PolicyFee; objQuote.VAT = objLifeQuote.VAT; objQuote.IsSelfCovered = objLifeQuote.IsSelfCovered; objQuote.IsSpouseCovered = objLifeQuote.IsSpouseCovered; objQuote.IsChildCovered = objLifeQuote.IsChildCovered; objQuote.NoofChilds = objLifeQuote.NoofChilds; objQuote.objQuoteMemberDetails = objLifeQuote.objQuoteMemberDetails; objQuote.Status = "Success"; } else { objQuote.Status = "Error"; } return(objQuote); }
///Services /// public AIA.Life.Models.Integration.Services.QuoteInfo GetQuoteInformation(string QuoteNo) { AIA.Life.Models.Integration.Services.QuoteInfo objLifeQuote = new AIA.Life.Models.Integration.Services.QuoteInfo(); objLifeQuote.QuoteNo = QuoteNo; objLifeQuote.IsForServices = true; AIA.Life.Business.Quote.QuoteBusiness objQuoteBusiness = new AIA.Life.Business.Quote.QuoteBusiness(); return(objQuoteBusiness.FetchServicesQuoteData(objLifeQuote)); }