public ActionResult SearchCatsSP(string cat)
 {
     int catid = -1;
     if (cat == "show")
     {
         catid = 1;
     }
     if (cat == "artist")
     {
         catid = 2;
     }
     if (cat == "venue")
     {
         catid = 3;
     }
     List<StaffPick> picks = Utilities.StaffPickDB.Picks.Where(s=>s.Catagory == catid).ToList();
     List<SPViewModel> pickmods = new List<SPViewModel>();
     foreach (var item in picks)
     {
         pickmods.Add(new SPViewModel(item, null));
     }
     SPlistViewModel Mod = new SPlistViewModel(pickmods, null);
     string part = ControllerContext.RenderPartialViewToString("_listings", Mod._PickPages);
     return Content(part);
 }
 //
 // GET: /StaffPicks/
 public ActionResult Index()
 {
     List<StaffPick> picks = Utilities.StaffPickDB.Picks.ToList();
     List<SPViewModel> pickmods = new List<SPViewModel>();
     foreach (var item in picks)
     {
         pickmods.Add(new SPViewModel(item, null));
     }
     SPlistViewModel Mod = new SPlistViewModel(pickmods, null);
     string part = ControllerContext.RenderPartialViewToString("_listings", Mod._PickPages);
     return View((object)part);
 }
 public ActionResult SearchSP(string keywords)
 {
     List<StaffPick> picks = Utilities.StaffPickDB.Picks.ToList();
     string[] keys = keywords.Split(' ');
     picks = picks.Where(s => keys.Any(a => s.Caption.Contains(a)) || keys.Any(a => s.Description.Contains(a)) || keys.Any(a => s.Title.Contains(a)) || keys.Any(a => s.SubTitle.Contains(a))).ToList();
     List<SPViewModel> pickmods = new List<SPViewModel>();
     foreach (var item in picks)
     {
         pickmods.Add(new SPViewModel(item, null));
     }
     SPlistViewModel Mod = new SPlistViewModel(pickmods, null);
     string part = ControllerContext.RenderPartialViewToString("_listings", Mod._PickPages);
     return View("Index",(object)part);
 }