public ActionResult AddCar(Car car) { var repo = new PersonRepository(Properties.Settings.Default.ConStr); repo.AddCar(car); return(RedirectToAction("Index")); }