示例#1
0
        public ActionResult LoadStyle(StyleEditPageObj myStyles)
        {
            TempData["TmpStyle"] = myStyles.ChosenStyle;

            //var result = new StyleController { tmpStyleChosen = myStyles.ChosenStyle };
            //result.Edit();

            return(RedirectToAction("Edit"));
        }
示例#2
0
        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));
        }
示例#3
0
        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));
        }