public ActionResult Edit([Bind(Include = "ID,FirstName,LastName,Email,Mobile,DateOfBirth,Password")] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }