public static List GetProductSize()

in AdventureWorksMVC/Business/ProductManager.cs [134:142]


        public static List<string> GetProductSize(int categoryId)
        {
            List<string> sizeList = null;
            sizeList = (from p in Common.DataEntities.Product
                        where p.Size != null && p.ProductSubcategory.ProductSubcategoryID == categoryId
                        orderby p.Size
                        select p.Size).Distinct().ToList();
            return sizeList;
        }