public ActionResult Search(string phrase) { if (!String.IsNullOrEmpty(phrase)) { TempData["searchedList"] = employeeBL.Search(phrase).ToList(); return(RedirectToAction("Index")); } return(RedirectToAction("Index")); }
public ActionResult Search(string phrase) { if (!String.IsNullOrEmpty(phrase)) { TempData["searchedList"] = employeeBL.Search(phrase).ToList(); return(RedirectToAction("Index")); } return(RedirectToAction("Index")); }