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