public ActionResult Create(Checkinout checkinout) { if (ModelState.IsValid) { db.Checkinouts.Add(checkinout); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(checkinout)); }
public ActionResult Create(OPinfo opinfo) { if (ModelState.IsValid) { db.OPinfoes.Add(opinfo); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(opinfo)); }