private void ClearLowAndHighCollections() { ChainOneHigh.Clear(); ChainOneLow.Clear(); ChainTwoHigh.Clear(); ChainTwoLow.Clear(); ChainThreeHigh.Clear(); ChainThreeLow.Clear(); }
private void UpdateLowAndHighPrices() { ChainOneHigh.Clear(); var resultOneHigh = _dataProvider.GetHighPricesInChainOne(CartItems.ToList()); foreach (var item in resultOneHigh) { ChainOneHigh.Add(item); } ChainOneLow.Clear(); var resultOneLow = _dataProvider.GetLowPricesInChainOne(CartItems.ToList()); foreach (var item in resultOneLow) { ChainOneLow.Add(item); } ChainTwoHigh.Clear(); var resultTwoHigh = _dataProvider.GetHighPricesInChainTwo(CartItems.ToList()); foreach (var item in resultTwoHigh) { ChainTwoHigh.Add(item); } ChainTwoLow.Clear(); var resultTwoLow = _dataProvider.GetLowPricesInChainTwo(CartItems.ToList()); foreach (var item in resultTwoLow) { ChainTwoLow.Add(item); } ChainThreeHigh.Clear(); var resultThreeHigh = _dataProvider.GetHighPricesInChainThree(CartItems.ToList()); foreach (var item in resultThreeHigh) { ChainThreeHigh.Add(item); } ChainThreeLow.Clear(); var resultThreeLow = _dataProvider.GetLowPricesInChainThree(CartItems.ToList()); foreach (var item in resultThreeLow) { ChainThreeLow.Add(item); } }