public ActionResult KnockoutIsland() { var model = new KnockoutIslandModel(); model.Event = new Event(); model.Event.Speakers = new List <FamousCoder>(); model.PossibleSpeakers = famousCoderRepository.GetAll().AsEnumerable(); return(View(model)); }
public ActionResult KnockoutIsland(KnockoutIslandModel model) { if (model.Event.Speakers != null) { foreach (var speaker in model.Event.Speakers) { Debug.WriteLine("CoderName: {0}; Session Name: {1}; ", speaker.CoderName, speaker.FamousFor); } } return(View("EventView", model)); }