Пример #1
0
        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
        }
Пример #2
0
 /// <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));
 }