コード例 #1
0
        public ActionResult DuplicateCondition(int id)
        {
            var m = new AdvancedModel();

            m.LoadScratchPad();
            m.EditCondition();
            m.CopyCurrentCondition(id);
            return(View("Conditions", m));
        }
コード例 #2
0
        public ActionResult EditCondition(int id)
        {
            var m = new AdvancedModel {
                SelectedId = id
            };

            m.LoadScratchPad();
            m.EditCondition();
            return(View("Conditions", m));
        }
コード例 #3
0
        public ActionResult AddNewCondition(int id)
        {
            var m = new AdvancedModel {
                SelectedId = id
            };

            m.LoadScratchPad();
            m.EditCondition();
            if (m.ConditionName == "Group")
            {
                m.AddConditionToGroup();
            }
            else
            {
                m.AddNewConditionAfterCurrent(id);
            }
            return(View("Conditions", m));
        }