public ActionResult AjaxSearch(AJAXSearchVM vm) { if (vm.FName == null && vm.Salary == 0) { vm.Employees = empService.GetList(); } else { var searchEmployees = empService.AjaxSearch(vm); vm.Employees = searchEmployees; } return(View(vm)); }
public ActionResult AjaxSearch(AJAXSearchVM vm) { if (vm.FName == null && vm.Salary == 0) { vm.Employees = empService.GetList(); } else { var searchEmployees = empService.AjaxSearch(vm); vm.Employees = searchEmployees; } return(View(vm)); }