public void Delete(Guid id) { _unitOfWork.BeginTransaction(); var mechanic = _mechanicRepository.GetById(id); if (mechanic == null) { _unitOfWork.Commit(); throw new Exception(ExceptionMessages.MechanicException.NOT_FOUND); } _mechanicRepository.Delete(mechanic); _unitOfWork.Commit(); }