示例#1
0
 public ActionResult Index()
 {
     if (ViewExtensions2.UseNewLook())
         return Redirect("/SavedQueryList");
     var m = new SavedQuery2Model();
     return View(m);
 }
示例#2
0
 public ActionResult Results()
 {
     var m = new SavedQuery2Model();
     UpdateModel(m.Pager);
     UpdateModel(m);
     var onlyMine = DbUtil.Db.UserPreference("savedSearchOnlyMine", "true").ToBool();
     if (m.onlyMine != onlyMine)
         DbUtil.Db.SetUserPreference("savedSearchOnlyMine", m.onlyMine);
     return View(m);
 }