Пример #1
0
 public ActionResult Edit([Bind(Include = "Id,Name")] Bank bank)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bank).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bank));
 }
 public ActionResult Edit([Bind(Include = "Id,Code,Severity")] StatementStatus statementStatus)
 {
     if (ModelState.IsValid)
     {
         db.Entry(statementStatus).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(statementStatus));
 }
Пример #3
0
 public ActionResult Edit([Bind(Include = "Id,Type,PostedDate,Value,CustomId,PayeeId,Memo")] StatementTransaction statementTransaction)
 {
     if (ModelState.IsValid)
     {
         db.Entry(statementTransaction).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(statementTransaction));
 }
Пример #4
0
 public ActionResult Edit([Bind(Include = "Id,TransactionId")] Statement statement)
 {
     if (ModelState.IsValid)
     {
         db.Entry(statement).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(statement));
 }