Exemple #1
0
 public ActionResult Create(Machine mach)
 {
     _db.Machines.Add(mach);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Create(Engineer eng)
 {
     _db.Engineers.Add(eng);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }