public void Save(string path) { if (_model == null) { throw new InvalidOperationException("No data to save"); } _serializer.Save(_model, path); }