public ActionResult Search(string SearchString)
        {
            LinqRestaurant linqRestaurant = new LinqRestaurant();

            TempData["Search"] = SearchString;

            if (!string.IsNullOrEmpty(SearchString))
            {
                if (SearchString.IndexOf(",") != -1)
                {
                    string[] splitSarchRestaurant = SearchString.Split(',');
                    var detailsRestaurants = linqRestaurant.DetailsRestaurantBySearch(splitSarchRestaurant[0], splitSarchRestaurant[1], splitSarchRestaurant[2]);
                    TempData["RestaurantSearch"] = detailsRestaurants;
                    return RedirectToAction("Details", "Restaurant", new { id = detailsRestaurants.Id });
                }
                else
                { 
                    var listerRestaurant = linqRestaurant.ListerRestaurants(SearchString);
                    var gpRestaurant = linqRestaurant.GroupRestaurant(listerRestaurant);
                    TempData["ResultSearch"] = gpRestaurant;
                    return RedirectToAction("Lister", "Restaurant", new { search = SearchString });
                }


            }

            return View();
        }
        public ActionResult Lister(string search, string currentFilter, int? page)
        {
            LinqRestaurant linqRestaurant = new LinqRestaurant();

            int pageSize = 2;
            int pageNumber = (page ?? 1);

            if (TempData["Search"] != null && TempData["ResultSearch"] != null)
            {
                ViewBag.CurrentFilter = TempData["Search"];
                var result = (IEnumerable<ViewModelGroupRestaurants>)TempData["ResultSearch"];
                return View(result.ToPagedList(pageNumber, pageSize));
            }

            if (search != null)
            {
                page = 1;
            }
            else
            {
                search = currentFilter;
            }

            ViewBag.CurrentFilter = search;

            if (!string.IsNullOrEmpty(search))
            {
                var listerRestaurant = linqRestaurant.ListerRestaurants(search);
                var gpRestaurant = linqRestaurant.GroupRestaurant(listerRestaurant);
                return View(gpRestaurant.ToPagedList(pageNumber, pageSize));
            }

            return RedirectToAction("Index","Home");
        }