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)); }
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)); }
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)); }
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)); }
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)); }