示例#1
0
        public async Task <IActionResult> Create()
        {
            var model = await _checkoutAttributeViewModelService.PrepareCheckoutAttributeModel();

            //locales
            await AddLocales(_languageService, model.Locales);

            return(View(model));
        }
        //create
        public IActionResult Create()
        {
            var model = _checkoutAttributeViewModelService.PrepareCheckoutAttributeModel();

            //locales
            AddLocales(_languageService, model.Locales);
            //Stores
            model.PrepareStoresMappingModel(null, false, _storeService);
            //ACL
            model.PrepareACLModel(null, false, _customerService);

            return(View(model));
        }
        public async Task <IActionResult> Create()
        {
            var model = await _checkoutAttributeViewModelService.PrepareCheckoutAttributeModel();

            //locales
            await AddLocales(_languageService, model.Locales);

            //Stores
            await model.PrepareStoresMappingModel(null, _storeService, false);

            //ACL
            await model.PrepareACLModel(null, false, _customerService);

            return(View(model));
        }