public void update(FacultyDto facultyDto) { try { using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required)) { Faculty faculty = _facultyRepository.getById(facultyDto.faculty_id); if (faculty == null) { throw new ItemNotFoundException($"faculty with ID {facultyDto.faculty_id} doesnot Exit."); } _facultyMaker.copy(faculty, facultyDto); _facultyRepository.update(faculty);; tx.Complete(); } } catch (Exception) { throw; } }