private static void ApplyPromotions(this SortedList <string, int> basket, IList <Item> pricings) { foreach (var pricing in pricings) { if (!string.IsNullOrEmpty(pricing.OtherItemsOffer)) { foreach (var comb in pricing.OtherItemsOffer.Split(' ')) { var values = comb.Split('-'); basket.ApplyPromotion(pricing.Sku, int.Parse(values[0]), values[1], int.Parse(values[2])); } } } }