public ActionResult GoSearch(diss model) { if (model.SearchVariables != null) { String GetDropDownValue = model.DropDrownMenuVar; String GetSearchText = model.SearchVariables; var GetSearch = _dissRepository.GetDissSearch(GetDropDownValue, GetSearchText); //return Content("This is the content " + GetSearch); return View(GetSearch); } else { return Redirect("/diss/index"); } }
public ActionResult Index(diss model) { return View(_dissRepository.GetSchoolPrograms()); }
public ActionResult GetSearchPartial() { diss model = new diss(); List<SelectListItem> dissList = new List<SelectListItem>(); dissList.Add(new SelectListItem() { Value = "1", Text = "Title" }); dissList.Add(new SelectListItem() { Value = "2", Text = "Author" }); dissList.Add(new SelectListItem() { Value = "3", Text = "Abstract" }); model.DissList = new SelectList(dissList, "Value", "Text"); //diss _mySelectList = new diss(); return PartialView("DissSearch", model); }