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