Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        private DealContent GetDealContent(string DealId)
        {
            Deal d = GetDeal(DealId);

            if (d == null)
            {
                return(null);
            }

            DealContent dc = _.CachedXmlParser.ParseContent <DealContent>(d.Content, DealId);

            return(dc);
        }