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