public ActionResult DuplicateCondition(int id) { var m = new AdvancedModel(); m.LoadScratchPad(); m.EditCondition(); m.CopyCurrentCondition(id); return(View("Conditions", m)); }
public ActionResult EditCondition(int id) { var m = new AdvancedModel { SelectedId = id }; m.LoadScratchPad(); m.EditCondition(); return(View("Conditions", m)); }
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)); }