internal void Copy(MarketsModel marketsModel) { Markets.Clear(); foreach (var market in marketsModel.Markets) { Markets.Add(market); } }
public void Copy(MarketsModel marketsModel) { Markets.Clear(); foreach (ProviderModel market in marketsModel.Markets) { Markets.Add(market); // Make sure all symbols has an id foreach (SymbolModel symbol in market.Symbols) { symbol.Validate(); } } }