public async Task <IActionResult> SearchByName(string CurrentFilterName) { ViewBag.CurrentFilterName = CurrentFilterName; var employees = await _repository.SearchEmployees(CurrentFilterName); var managers = await _repository.SearchManagers(CurrentFilterName); var workers = new AllWorkersVM() { Employees = employees.ToList(), Managers = managers.ToList() }; return(PartialView("_Workers", workers)); }