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