Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public ActionResult Index()
  2. {
  3. List<Product> p = new List<Product>() {
  4.  
  5. new Product { Id = 1, Name = "Pen", Price = 300 },
  6. new Product { Id = 2, Name = "Pencil", Price = 100 }
  7. };
  8.  
  9. return View(p);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement