Esempio n. 1
0
        public async Task <IActionResult> CreateArticle(string parentCategoryId)
        {
            var model = await _knowledgebaseViewModelService.PrepareKnowledgebaseArticleModel();

            if (!string.IsNullOrEmpty(parentCategoryId))
            {
                model.ParentCategoryId = parentCategoryId;
            }

            await AddLocales(_languageService, model.Locales);

            return(View(model));
        }
        public IActionResult CreateArticle(string parentCategoryId)
        {
            var model = _knowledgebaseViewModelService.PrepareKnowledgebaseArticleModel();

            //ACL
            model.PrepareACLModel(null, false, _customerService);
            //Stores
            model.PrepareStoresMappingModel(null, false, _storeService);

            if (!string.IsNullOrEmpty(parentCategoryId))
            {
                model.ParentCategoryId = parentCategoryId;
            }

            AddLocales(_languageService, model.Locales);
            return(View(model));
        }