Exemplo n.º 1
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));
        }