コード例 #1
0
 public ActionResult Edit(AccountingPoints accountingpoints)
 {
     if (ModelState.IsValid)
     {
         db.Entry(accountingpoints).State = EntityState.Modified;
         db.SaveChanges();
     }
     return(RedirectToAction("Index"));
 }
コード例 #2
0
 public ActionResult Create(AccountingPoints accountingpoints)
 {
     if (ModelState.IsValid)
     {
         db.AccountingPoints.Add(accountingpoints);
         db.SaveChanges();
     }
     return(RedirectToAction("Index"));
 }