Exemplo n.º 1
0
 public ActionResult Add(producten model)
 {
     if (!ModelState.IsValid)
     {
         return(View(model));
     }
     d.AddNewProduct(model);
     return(RedirectToAction("Index"));
 }