public ActionResult LoadStyle(StyleEditPageObj myStyles) { TempData["TmpStyle"] = myStyles.ChosenStyle; //var result = new StyleController { tmpStyleChosen = myStyles.ChosenStyle }; //result.Edit(); return(RedirectToAction("Edit")); }
public ActionResult Edit(StyleEditPageObj myStyles) { var user = User.Identity.Name; SharedVM.LogPageHit("Elite/Edit/SaveStyles", user); var vm = new StyleVM(); vm.SaveStylesForUser(myStyles.Styles, user); var pageObj = new StyleEditPageObj() { Styles = vm.GetStylesForUser(user, true), DefinedThemes = LoadSavedStyles() }; return(View(pageObj)); }
public ActionResult Edit() { var user = User.Identity.Name; SharedVM.LogPageHit("Style/Edit", user); var styleType = user; if (TempData["TmpStyle"] != null) { styleType = TempData["TmpStyle"].ToString(); } var vm = new StyleVM(); var pageObj = new StyleEditPageObj() { Styles = vm.GetStylesForUser(styleType, true), DefinedThemes = LoadSavedStyles() }; return(View(pageObj)); }