Пример #1
0
        /// <summary>
        /// Invoke view component
        /// </summary>
        /// <param name="modeName">Setting mode name</param>
        /// <returns>View component result</returns>
        public IViewComponentResult Invoke(string modeName = "settings-advanced-mode")
        {
            //prepare model
            var model = _settingModelFactory.PrepareSettingModeModel(modeName);

            return(View(model));
        }
Пример #2
0
        public async Task <IViewComponentResult> InvokeAsync(string modeName = "settings-advanced-mode")
        {
            var model = await _settingModelFactory.PrepareSettingModeModel(modeName);

            return(View(model));
        }