public void Load() { _rates = _memoryService.LoadCollection <CurrencyRate>(_fileName); _lastUpdate = _memoryService.LoadValue <DateTime>(_lastUpdateKey); _lastCurrency = _memoryService.LoadValue <string>(_lastCurrencyKey); OnLoaded(); }
public void Load() { Collection = _memoryService.LoadCollection <T>(FileName); if (Collection.Any()) { _index = Collection.OrderBy(x => x.Id).Last().Id; } }