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