public ActionResult EventsSearchDetail(int ID)
        {
            ViewBag.Event = DB.Events.FirstOrDefault(x => x.ID == ID);
            var dating = new EventsSearch(CurrentUser);

            if (Session["EventsSearch"] is EventsSearch)
            {
                dating = (EventsSearch)Session["EventsSearch"];
                Session["EventsSearch"] = null;
            }

            dating.Search(DB);
            return(PartialView(dating));
        }
        public ActionResult EventsSearch(string cat)
        {
            var dating = new EventsSearch(CurrentUser);

            dating.CatUrl = cat;
            if (Session["EventsSearch"] is EventsSearch)
            {
                dating = (EventsSearch)Session["EventsSearch"];
                Session["EventsSearch"] = null;
            }

            dating.Search(DB);
            return(PartialView(dating));
        }
 public ActionResult EventsSearch(EventsSearch dating, string cat)
 {
     dating.CatUrl = cat;
     dating.Search(DB);
     return(PartialView(dating));
 }