public ActionResult Search(string name, string orderby = "", int page = 1)
        {
            var filteredResults = _laService.SearchContains(name);

            var vm = new LaListViewModel(filteredResults, base.ExtractSchoolComparisonListFromCookie(), orderby);

            vm.Pagination = new Pagination
            {
                Start             = (SearchDefaults.RESULTS_PER_PAGE * (page - 1)) + 1,
                Total             = filteredResults.Count,
                PageLinksPerPage  = SearchDefaults.LINKS_PER_PAGE,
                MaxResultsPerPage = SearchDefaults.RESULTS_PER_PAGE
            };

            return(View(vm));
        }
        public ActionResult Search(string name, string orderby = "", int page = 1, bool openOnly = false)
        {
            var searchMethod = TempData["SearchMethod"] as string;

            var laModels     = _laService.SearchContains(name);
            var laViewModels = laModels.Select(la => new LaViewModel(la.Id, la.LaName)).ToList();

            var vm = new LaListViewModel(laViewModels, _benchmarkBasketService.GetSchoolBenchmarkList(), orderby, openOnly, searchMethod);

            vm.Pagination = new Pagination
            {
                Start             = (SearchDefaults.RESULTS_PER_PAGE * (page - 1)) + 1,
                Total             = laModels.Count,
                PageLinksPerPage  = SearchDefaults.LINKS_PER_PAGE,
                MaxResultsPerPage = SearchDefaults.RESULTS_PER_PAGE,
                PagedEntityType   = PagedEntityType.LA
            };

            return(View(vm));
        }