public IQueryable <ProductCrossSellMap> GetCrossSellProductMap() { List <ProductCrossSellMap> result = new List <ProductCrossSellMap>(); for (int i = 1; i <= 5; i++) { for (int x = 1; x <= 5; x++) { ProductCrossSellMap map = new ProductCrossSellMap(); map.ProductID = i; map.CrossProductID = x; if (i != x) { result.Add(map); } } } return(result.AsQueryable()); }
public IQueryable<ProductCrossSellMap> GetCrossSellProductMap() { List<ProductCrossSellMap> result = new List<ProductCrossSellMap>(); for (int i = 1; i <= 5; i++) { for (int x = 1; x <= 5; x++) { ProductCrossSellMap map = new ProductCrossSellMap(); map.ProductID = i; map.CrossProductID = x; if (i != x) result.Add(map); } } return result.AsQueryable(); }