ASP.Net MVC Tute 4 - Create a List from IList
ASP.Net MVC Tute 4 - Create a List from IList In this post I'll explain how to show data in a list. I have define this inside the Controller's Item ActionResult. You can arrange these in proper locations. 1. Create IList using a Model. private static IList<Item> items = new List<Item>() { new Item() { Id = 1, ItemName = "iPhone", Price = 99000 }, new Item() { Id = 2, ItemName = "Lumia 520", ...