public string GetDealSummary(string DealId) { DealContent dc = GetDealContent(DealId); if (dc == null) { return(string.Empty); } return((!string.IsNullOrEmpty(dc.DealSummary)) ? _.DCDTokenMatchers.ReplaceDealNameTokens(dc.DealSummary) : string.Empty); }
private DealContent GetDealContent(string DealId) { Deal d = GetDeal(DealId); if (d == null) { return(null); } DealContent dc = _.CachedXmlParser.ParseContent <DealContent>(d.Content, DealId); return(dc); }