public void Save() { MovieXMLDataService breweryXmlDataService = new MovieXMLDataService(); using (breweryXmlDataService) { breweryXmlDataService.Write(_movies); } }
public MovieRepository() { MovieXMLDataService movieXmlDataService = new MovieXMLDataService(); using (movieXmlDataService) { _movies = movieXmlDataService.Read() as List <Movie>; } }