Exemplo n.º 1
0
 public ActionResult Index(CdSearch model)
 {
     return(RedirectToAction(
                "Results",
                "Search",
                new { searchTerm = model.SearchTerm }));
 }
Exemplo n.º 2
0
        public ActionResult Results(string searchTerm)
        {
            CdSearch searchModel = new CdSearch
            {
                SearchTerm = searchTerm,
                Results    = GetSampleSearchResults()
            };

            return(View(searchModel));
        }