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

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