Пример #1
0
 public TrackRepository()
     : base("tracks.json")
 {
     _factory = new TrackFactory();
     if (_items.Count == 0)
     {
         var items = _factory.GetList();
         foreach (var item in items)
         {
             base.Insert(item);
         }
     }
 }