public ActionResult Edit([Bind(Include = "Id,FirstName,LastName,Contact,Address,Designation,Salary")] Employee employee) { if (ModelState.IsValid) { db.Entry(employee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(employee)); }
public ActionResult Edit([Bind(Include = "Email,Password,FirstName,LastName,Address,Contact,SQuestion,SAnswer")] Customer customer) { if (ModelState.IsValid) { db.Entry(customer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customer)); }