public List <ProductModel> GetFeatured() { Apriori ap = new Apriori(OrderProcessor.GetTransactionProductIdList(), 0.5f, 0.3f); var featuredCollection = ap.Calculate(); var products = new List <ProductModel>(); foreach (var productId in featuredCollection) { products.Add(ProductProcessor.GetProduct(productId)); } return(products); }