public ActionResult Edit(DepartmentEditDTO dto)
        {
            Department department = dto.toEntity();

            _departmentService.Update(department);
            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(string name)
        {
            var department        = _departmentService.GetByName(name);
            DepartmentEditDTO dto = new DepartmentEditDTO(department);

            return(View(dto));
        }