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