public ActionResult StronglyTypeView() { StronglyTypedModel stronglytypemodel = new StronglyTypedModel(); stronglytypemodel._flavors.Add(new IceCreamFlavor { Id = 1, Name = "test" }); stronglytypemodel._flavors.Add(new IceCreamFlavor { Id = 2, Name = "test2" }); stronglytypemodel._flavors.Add(new IceCreamFlavor { Id = 3, Name = "test3" }); stronglytypemodel._flavors.Add(new IceCreamFlavor { Id = 4, Name = "test4" }); return View(stronglytypemodel); }
public ActionResult StronglyTypeView(StronglyTypedModel model) { return View(); }