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