예제 #1
0
 public ActionResult AddNewCondition(QueryModel m)
 {
     m.Db = CurrentDatabase;
     m.EditCondition();
     ViewBag.NewId = m.AddConditionToGroup();
     return(View("Conditions", m));
 }
예제 #2
0
        public ActionResult AddToGroup()
        {
            var m = new QueryModel();

            UpdateModel <IQBUpdateable>(m);
            m.LoadScratchPad();
            if (Validate(m))
            {
                m.AddConditionToGroup();
            }
            return(PartialView("TryConditions", m));
        }