public ActionResult SearchEmployee(EmployeeSearchBO searchBO) { var searchList = bl.GetEmployeeList(searchBO); //Gets EmployeeList according to the search return(PartialView("_EmployeeList", searchList)); //Partially returns the possible EmployeeList }
/// <summary> /// Displays an Index page /// </summary> /// <param name="searchBO"></param> /// <returns></returns> public ActionResult Index(EmployeeSearchBO searchBO) { SetViewBag(); //ViewBag sets only for Branch's dropdown searchBO.EmployeeList = bl.GetEmployeeList(searchBO); //Gets List of all Employees return(View(searchBO)); }