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