public ActionResult Index(int? page)
 {
     var mainView = new HotelSearchViewModel();
     //var viewData = CreateListViewData<HotelListViewData>(page);
     //var pagedResult = hotelRepository.GetHotelList(page, 6);
     //viewData.Hotels = pagedResult.Result;
     //viewData.TotalCount = pagedResult.Total;
     //viewData.SiteTitle = "Hotel list";
     //mainView.HotelListViewData = viewData;
     //mainView.Locations = hotelRepository.GetLocation();
     //if (Request.IsAjaxRequest())
     //{
     //    return PartialView("HotelList", viewData);
     //}
     return View("Index", mainView);
 }
        public ActionResult Search(HotelSearchCriteria crit)
        {
            var mainView = new HotelSearchViewModel();
            //var viewData = CreateListViewData<HotelListViewData>(crit.Page);
            //var pagedResult = hotelRepository.Search(crit);
            //viewData.Hotels = pagedResult.Result;
            //viewData.TotalCount = viewData.Hotels.Count > 0 ? pagedResult.Total : 0;
            //viewData.SiteTitle = "Hotel list";
            //mainView.HotelListViewData = viewData;
            //mainView.HotelSearchCriteria = crit;

            //if (Request.IsAjaxRequest())
            //{
            //    return PartialView("HotelList", viewData);
            //}

            //mainView.Locations = hotelRepository.GetLocation();
            return View("Index", mainView);
        }