public virtual ActionResult Create(XZKFYDCFInfo item) { if (ModelState.IsValid) { _db.XZKFYDCFs.Add(item); _db.SaveChanges(); return(RedirectToAction("Index")); } return(View()); }
public virtual ActionResult Edit(XZKFYDCFInfo item) { _db.Entry(item).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Index")); }