public List <Person> GetPeople() { var repo = new PeopleCarsRepository(_connectionString); return(repo.GetPeople()); }
public ActionResult Index() { var repo = new PeopleCarsRepository(Properties.Settings.Default.ConStr); return(View(repo.GetPeople())); }
public IActionResult Index() { var repo = new PeopleCarsRepository(_connectionString); return(View(repo.GetPeople())); }