public void Create(DoctorViewModel dto) { try { var doctor = _doctorRepository.Add(dto.ToMEDoctor()); UpdateDoctorIntoSpecialist(doctor.MEDoctorID, dto.MESpecialistIds.Select(x => int.Parse(x)).ToArray()); _unitOfWork.Commit(); } catch (Exception ex) { _logService.Create(ex); throw ex; } }