1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| public class ProductService:IProductService { public IEnumerable<Product> Products { get { //仅作演示 return new List<Product> { new Product {ProductID = 1, Name = "Football", Description = "Football description", Price = 25}, new Product {ProductID = 2, Name = "Stuff board", Description = "Stuff board description", Price = 179 }, new Product {ProductID = 3, Name = "Running shoes", Description = "Running shoes description", Price = 95 }, new Product {ProductID = 4, Name = "Basketball", Description = "Basketball description", Price = 125}, new Product {ProductID = 5, Name = "Volleyball", Description = "Volleyball description", Price = 59 }, new Product {ProductID = 6, Name = "Basketball shoes", Description = "Basketball shoes description", Price = 195 }, new Product {ProductID = 7, Name = "Volleyball shoes", Description = "Volleyball shoes description", Price = 205}, new Product {ProductID = 8, Name = "Swimming clothes", Description = "Swimming clothes description", Price = 199 }, new Product {ProductID = 9, Name = "Climbing boot", Description = "Climbing boot description", Price = 900 }, new Product {ProductID = 10, Name = "Football", Description = "Football description", Price = 25}, new Product {ProductID = 11, Name = "Stuff board", Description = "Stuff board description", Price = 179 }, new Product {ProductID = 12, Name = "Running shoes", Description = "Running shoes description", Price = 95 }, new Product {ProductID = 13, Name = "Basketball", Description = "Basketball description", Price = 125}, new Product {ProductID = 14, Name = "Volleyball", Description = "Volleyball description", Price = 59 }, new Product {ProductID = 15, Name = "Basketball shoes", Description = "Basketball shoes description", Price = 195 }, new Product {ProductID = 16, Name = "Volleyball shoes", Description = "Volleyball shoes description", Price = 205}, new Product {ProductID = 17, Name = "Swimming clothes", Description = "Swimming clothes description", Price = 199 }, new Product {ProductID = 18, Name = "Climbing boot", Description = "Climbing boot description", Price = 900 } }; } } }
|