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