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