public ActionResult SearchResults(SearchModel model)
 {
     List<MergedItem> items = new List<MergedItem>();
     if (model.ActionListId > 0)
     {
         items = ActionItemRepos.GetItems(model.ActionListId);
     }
     ActionList al = new ActionList();
     al = db.ActionLists.Find(model.ActionListId);
     ViewBag.Id = al.ActionListId;
     ViewBag.IsUnlocked = al.IsActive;
     return View("SearchResults", items);
 }
 public ActionResult Search(SearchModel model)
 {
     ViewBag.SearchModel = model;
     ViewBag.actionListItems = new SelectList(db.ActionLists.ToList(), "ActionListId", "Name");
     return PartialView(model);
 }