示例#1
0
 public ActionResult Create()
 {
     ViewBag.InstructorID = new SelectList(repoPerson.All().OrderBy(p => p.FirstName), "ID", "FirstName");
     return(View());
 }
 // GET: Person
 public ActionResult Index()
 {
     return(View(db.All()));
 }