public async Task <IActionResult> GetDepartment(int userId, string deptName)
        {
            var creator = await _userRepo.GetUser(userId);

            if (creator.Id != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            var departmentFromRepo = _repo.GetDepartment(userId, deptName);

            DepartmentForCreationDto departmentForReturn = _mapper.Map <DepartmentForCreationDto>(departmentFromRepo);

            return(Ok(departmentForReturn));
        }