Ejemplo n.º 1
0
        public ActionResult CategoryParseAndShow(string urlCategoryForParsing)
        {
            mIsStopParsing = false;

            _logger.Debug("--- CategoryParse START...");

            var parser      = BaseParserCategories.Create(urlCategoryForParsing, _logger, _yandexMarketCategoryService);
            var newCategory = parser.Parse(ref mIsStopParsing);

            _logger.Debug("+++ CategoryParse  DONE.");

            return(Json(newCategory));
        }
Ejemplo n.º 2
0
        public ActionResult CategoryParseAndApply(string urlCategoryForParsing)
        {
            mIsStopParsing = false;

            _logger.Debug("--- CategoryParse START...");

            var parser        = BaseParserCategories.Create(urlCategoryForParsing, _logger, _yandexMarketCategoryService);
            var newYaCategory = parser.Parse(ref mIsStopParsing);

            newYaCategory.ParentId = 0;
            var y = InsertShopCategoryHierarhy(newYaCategory);
            var x = InsertParserCategoryHierarhy(newYaCategory);

            _logger.Debug("+++ CategoryParse  DONE.");

            return(Json(newYaCategory));
        }