public ActionResult Create(webpages_Role webpages_role) { if (ModelState.IsValid) { db.Roles.Add(webpages_role); db.SaveChanges(); return RedirectToAction("Index"); } return View(webpages_role); }
public ActionResult Edit(webpages_Role webpages_role) { if (ModelState.IsValid) { db.Entry(webpages_role).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(webpages_role); }