public ActionResult DeleteConfirmed(int id) { ProductEigenschappenKoppeling productEigenschappenKoppeling = db.ProductEigenschappenKoppelingen.Find(id); db.ProductEigenschappenKoppelingen.Remove(productEigenschappenKoppeling); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,ProductEigenschappenId,ProductId,AanmaakDatum")] ProductEigenschappenKoppeling productEigenschappenKoppeling) { if (ModelState.IsValid) { db.Entry(productEigenschappenKoppeling).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(productEigenschappenKoppeling)); }
public ActionResult Create([Bind(Include = "Id,ProductEigenschappenId,ProductId,AanmaakDatum")] ProductEigenschappenKoppeling productEigenschappenKoppeling) { if (ModelState.IsValid) { db.ProductEigenschappenKoppelingen.Add(productEigenschappenKoppeling); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(productEigenschappenKoppeling)); }
// GET: ProductEigenschappenKoppelings/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ProductEigenschappenKoppeling productEigenschappenKoppeling = db.ProductEigenschappenKoppelingen.Find(id); if (productEigenschappenKoppeling == null) { return(HttpNotFound()); } return(View(productEigenschappenKoppeling)); }