Esempio n. 1
0
        public static List <string> SortInMaxiOrder(List <string> ShoppingCart, List <StoreStructure> assortment)
        {
            List <string> assortmentMax = StoreStructure.CreateMaxiSortimentOrder(assortment);
            var           maxiList      = new List <string>();

            foreach (string m in assortmentMax)
            {
                foreach (string s in ShoppingCart)
                {
                    if (s == m)
                    {
                        maxiList.Add(s);
                    }
                }
            }
            return(maxiList);
        }