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