Beispiel #1
0
        public virtual ActionResult Create(XZKFYDCFInfo item)
        {
            if (ModelState.IsValid)
            {
                _db.XZKFYDCFs.Add(item);
                _db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View());
        }
Beispiel #2
0
 public virtual ActionResult Edit(XZKFYDCFInfo item)
 {
     _db.Entry(item).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }