Ejemplo n.º 1
0
        public async Task <IActionResult> CreateCategory()
        {
            var model = await _knowledgebaseViewModelService.PrepareKnowledgebaseCategoryModel();

            await AddLocales(_languageService, model.Locales);

            return(View(model));
        }
        public IActionResult CreateCategory()
        {
            var model = _knowledgebaseViewModelService.PrepareKnowledgebaseCategoryModel();

            model.PrepareACLModel(null, false, _customerService);
            model.PrepareStoresMappingModel(null, false, _storeService);
            AddLocales(_languageService, model.Locales);
            return(View(model));
        }