Beispiel #1
0
 public ActionResult Create(Klant klant)
 {
     if (ModelState.IsValid)
     {
         if (klantService.Add(klant))
         {
             return(RedirectToAction(nameof(Index)));
         }
         else
         {
             return(View(klant));
         }
     }
     else
     {
         return(View(klant));
     }
 }