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