public void Save() { ChampionXmlData championXmlData = new ChampionXmlData(); using (championXmlData) { championXmlData.Write(_champions); } }
public ChampionRepository() { ChampionXmlData championXmlData = new ChampionXmlData(); using (championXmlData) { _champions = championXmlData.Read() as List <Champion>; } }