コード例 #1
0
        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));
        }