Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Index()
- {
- List<Product> p = new List<Product>() {
- new Product { Id = 1, Name = "Pen", Price = 300 },
- new Product { Id = 2, Name = "Pencil", Price = 100 }
- };
- return View(p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement