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