public ActionResult CarList() { NewCar newCar = new NewCar(Request.Query["new-make"], Request.Query["new-model"], Request.Query["new-color"], Request.Query["new-year"], Request.Query["new-price"]); newCar.Save(); return(View(NewCar.GetAll())); }
public ActionResult Index() { List <NewCar> allCars = NewCar.GetAll(); return(View(allCars)); }