public ActionResult Edit([Bind(Include = "CustomerID,Title,ForeName,MiddleInitial,SurName,DateofBirth,Status")] 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,LoanNumber,LoanType,StartDate,IntrestRate,Value,Duration,IsInactive,CustomerID,LoanOriginatedBy")] loans loans) { if (ModelState.IsValid) { db.Entry(loans).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(loans)); }