コード例 #1
0
 private static AneleViewModel PopulateCampuses()
 {
     AneleViewModel vm = new AneleViewModel();
     vm.Campuses = new List<Campus>();
     vm.Campuses.Add(new Campus { CampusName = "DeVry", Id = 1 });
     vm.Campuses.Add(new Campus { CampusName = "ASU", Id = 2 });
     vm.Campuses.Add(new Campus { CampusName = "UofA", Id = 3 });
     return vm;
 }
コード例 #2
0
 public ActionResult Tut155(int? id)
 {
     AneleViewModel vm = PopulateCampuses();
     return View(vm);
 }