예제 #1
0
        //[OutputCache(Duration = 3600, VaryByParam = "")]
        public ActionResult index()
        {
            SearchEngine srcEngine = new SearchEngine();
            var homeModel = srcEngine.getSearchModel();

            return View(homeModel);
        }
예제 #2
0
        //[OutputCache(Duration=3600, VaryByParam="destination;activityId")]
        public ActionResult destinations(string destination, string activityId)
        {
            Caval_go.Models.SearchEngine srcEngine = new Caval_go.Models.SearchEngine();
            activityId = activityId.ToLower();
            destination = destination.ToLower();
            string tag = Request.QueryString["tag"];
            long iActivityId = 0;
            if ((!String.IsNullOrEmpty(activityId)) && (activityId != "all")) {
                iActivityId = Convert.ToInt64(activityId);
            }
            var vwModel = prodSvc.searchProducts(tag, destination, iActivityId);
            vwModel.SearchEngineModel = srcEngine.getSearchModel();

            return View(vwModel);
        }
예제 #3
0
 //[OutputCache(Duration = 3600, VaryByParam = "destination;tag;activityId")]
 public ActionResult Search(string tag, string destination)
 {
     Caval_go.Models.SearchEngine srcEngine = new Caval_go.Models.SearchEngine();
     long activityId = 0;
     if (!String.IsNullOrEmpty(Request.QueryString["activityId"])) activityId = Convert.ToInt64(Request.QueryString["activityId"]);
     string profile = Request.QueryString["profile"];
     var vwModel = prodSvc.searchProducts(tag + (String.IsNullOrEmpty(profile) ? "" : "," + profile), destination, activityId);
     vwModel.SearchEngineModel = srcEngine.getSearchModel();
     return View(vwModel);
 }