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