Ejemplo n.º 1
0
        public ActionResult AddTechnology(tblTechnology tech)
        {
            db.tblTechnologies.Add(tech);
            db.SaveChanges();
            ViewBag.success = "Added successfully!";
            ViewBag.list    = db.tblTechnologies.ToList();

            return(View());
        }
Ejemplo n.º 2
0
 public ActionResult EditTechnology(tblTechnology tech)
 {
     db.Entry(tech).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("AddTechnology"));
 }