public ActionResult Create(Cars car) { if (!ModelState.IsValid) { return(View(car)); } else { context.Insert(car); context.Commit(); return(RedirectToAction("Index")); } }