public ActionResult Get(int id) { using (var personrepo = new PersonRepository()) { var person = personrepo.Get().First(); return View(person); } }
public ActionResult Index() { using (var personRepo = new PersonRepository()) { var persons = personRepo.Get(); return View(persons); } }