コード例 #1
0
ファイル: ImpExpController.cs プロジェクト: devFer/pmsManager
 public ActionResult Edit(ImpExpAssociated impexpassociated)
 {
     if (ModelState.IsValid)
     {
         db.Entry(impexpassociated).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index", new { id = impexpassociated.PmsId }));
     }
     return(View(impexpassociated));
 }
コード例 #2
0
 public ActionResult Edit(Pms pms)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pms).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(pms));
 }