Esempio n. 1
0
 public ActionResult Edit([Bind(Include = "CustomerId,UserName,FirstName,LastName,Street,City,State,Country,Phone")] Customer customer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(customer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(customer));
 }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "LoanId,CustomerId,Amount,Year,CreatedOn")] Loan loan)
 {
     if (ModelState.IsValid)
     {
         db.Entry(loan).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(loan));
 }
Esempio n. 3
0
 public ActionResult Edit([Bind(Include = "TransactionId,CustomerId,TransTypeId,Amount,CreatedOn")] Transaction transaction)
 {
     if (ModelState.IsValid)
     {
         db.Entry(transaction).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(transaction));
 }
Esempio n. 4
0
 public ActionResult Edit([Bind(Include = "DepositId,CustomerId,Amount,Months,Rate,Interest,total_amt")] TermDeposit termDeposit)
 {
     if (ModelState.IsValid)
     {
         db.Entry(termDeposit).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(termDeposit));
 }
Esempio n. 5
0
 public ActionResult Edit([Bind(Include = "AccountId,CustomerId,accounttype1,AccountNum,Balance,Status")] Account account)
 {
     if (ModelState.IsValid)
     {
         db.Entry(account).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(account));
 }