public ActionResult Add(Driver d) { if (ModelState.IsValid) { repo.AddDriver(d); return(RedirectToAction("All")); } else { ViewBag.gradovi = repo.GetDrivers(); return(View(d)); } }