public ActionResult AddTechnology(tblTechnology tech) { db.tblTechnologies.Add(tech); db.SaveChanges(); ViewBag.success = "Added successfully!"; ViewBag.list = db.tblTechnologies.ToList(); return(View()); }
public ActionResult EditTechnology(tblTechnology tech) { db.Entry(tech).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("AddTechnology")); }