public async Task <IActionResult> Index() { objReuseableParams = GetReuseableParams(_memoryCache); cbuilderView = await LoadData(); AssignSettings(); cbuilderView.TempPageName = PageName; await LoadPages(cbuilderView.PageList, cbuilderView.DashboardPages); InitData(); cbuilderView.IsDevelopmentMode = CurrentHostEnvironment.IsDevelopment; await CombineFiles(); cbuilderView.Applicationname = string.Empty; cbuilderView.EnableHeader = "true"; //cbuilderView.TempPageName = "webbuildertemppagename"; cbuilderView.Version = string.Empty; cbuilderView.Webbuildermodulepath = "/modules/webbuilder"; cbuilderView.HostURL = HostUrl; cbuilderView.ParamString = QueryParamString; cbuilderView.Culture = GetCurrentCulture; cbuilderView.CultureURL = CultureURL; cbuilderView.CultureLanguage = settingValues[SettingKeys.CultureLanguage]; LoadAssets(); return(View(cbuilderView)); }
public BuilderController(IHttpContextAccessor httpContextAccessor, IMemoryCache memoryCache, IHostApplicationLifetime appLifetime, IWebHostEnvironment webHostEnvironment) : base(httpContextAccessor) { httpContextAccessor.HttpContext.Items[HttpContextKey.UserArea] = UserArea.Editor; httpContextAccessor.HttpContext.Items[HttpContextKey.layoutName] = CbuilderLayout.Cbuilder; cbuilderView = new CbuilderView(); commonCbuilder = new CommonCbuilder(); _httpContextAccessor = httpContextAccessor; _memoryCache = memoryCache; _appLifetime = appLifetime; _webHostEnvironment = webHostEnvironment; }