public ActionResult Create(cctiposerv cctiposerv) { if (ModelState.IsValid) { db.cctiposerv.Add(cctiposerv); db.SaveChanges(); return RedirectToAction("Edit", new { id = cctiposerv.cctiposervid }); } return View(cctiposerv); }
public ActionResult Edit(cctiposerv cctiposerv) { if (ModelState.IsValid) { db.Entry(cctiposerv).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(); }