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