public ActionResult Edit(supplier supplier) { if (ModelState.IsValid) { this.vodpointsdb.Entry(supplier).State = EntityState.Modified; this.vodpointsdb.SaveChanges(); } return RedirectToAction("Index"); }
public ActionResult Create(supplier supplier) { if (ModelState.IsValid) { this.vodpointsdb.suppliers.Add(supplier); this.vodpointsdb.SaveChanges(); } return RedirectToAction("Index"); }