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