Example #1
0
        public ActionResult Result(string search)
        {
            SearchModel model = new SearchModel();

            model.SearchText = search;
            var result = model.GetResult();

            if (Request.IsAjaxRequest())
            {
                return(PartialView("Result", result));
            }
            return(View(result));
        }