public async Task <SpecializationResponse> UpdateAsync(int id, Specialization specialization)
        {
            var existingSpecialization = await specializationRepository.FindByIdAsync(id);

            if (existingSpecialization == null)
            {
                return(new SpecializationResponse("Специализация не найдена!"));
            }

            existingSpecialization.Name = specialization.Name;

            try
            {
                specializationRepository.Update(existingSpecialization);
                await unitOfWork.CompleteAsync();

                return(new SpecializationResponse(existingSpecialization));
            }
            catch (Exception ex)
            {
                return(new SpecializationResponse($"Ошибка при обновлении Специализации: {ex.Message}"));
            }
        }