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