示例#1
0
        public bool AddRssFeeds(RssFeedRequest request)
        {
            bool result = false;

            try
            {
                SqlSvrDAL     dal     = new SqlSvrDAL(request.ClientInfo);
                RSSFeedMaster rSSFeed = new RSSFeedMaster();
                rSSFeed.ID = request.ID;
                rSSFeed.DescriptionNode  = request.DescriptionNode;
                rSSFeed.itemNodePath     = request.itemNodePath;
                rSSFeed.RSSFeedUrl       = request.RSSFeedUrl;
                rSSFeed.PubDateNode      = request.PubDateNode;
                rSSFeed.rssFeedOrder     = request.rssFeedOrder;
                rSSFeed.TitleNode        = request.TitleNode;
                rSSFeed.Title            = request.Title;
                rSSFeed.hrfTitleNodePath = request.hrfTitleNodePath;
                result = dal.AddRssFeeds(rSSFeed);
            }
            catch (Exception ex)
            {
                //LogHelper.AddLog("RSSController,AddRssFeeds", ex.Message, ex.StackTrace, "HCL.Academy.Service", request.ClientInfo.emailId);
                TelemetryClient telemetry = new TelemetryClient();
                telemetry.TrackException(ex);
            }
            return(result);
        }