public ActionResult AddNewCondition(QueryModel m) { m.Db = CurrentDatabase; m.EditCondition(); ViewBag.NewId = m.AddConditionToGroup(); return(View("Conditions", m)); }
public ActionResult AddToGroup() { var m = new QueryModel(); UpdateModel <IQBUpdateable>(m); m.LoadScratchPad(); if (Validate(m)) { m.AddConditionToGroup(); } return(PartialView("TryConditions", m)); }