public async Task <IActionResult> GetAll()
        {
            var userDepartments = await userDepartmentRepository.GetAll();

            var result = mapper.Map <IEnumerable <ViewUserDepartmentResource> >(userDepartments);

            return(Ok(result));
        }