public IActionResult GetAllById()
        {
            DepByEmpViewModel departmentList = new DepByEmpViewModel();

            departmentList.DepartmentItems = departmentManager.GetAll().ToList().Select(c => new SelectListItem()
            {
                Text  = c.Name,
                Value = c.Id.ToString()
            }).ToList();
            return(View(departmentList));
        }
        public IActionResult GetAllById(DepByEmpViewModel empview)
        {
            var depId = empview.DepartmentId;

            if (depId != null)
            {
                List <Employee> employeeList = employeeManager.GetAllById(depId).ToList();

                return(View("EmployeeListView", employeeList));
            }
            return(View());
        }