public ActionResult Edit([Bind(Include = "UserId,Password,FirstName,LastName,Age,Gender,Address,PhoneNumber,UserType")] UserInformation userInformation) { if (ModelState.IsValid) { db.Entry(userInformation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(userInformation)); }
public ActionResult Edit([Bind(Include = "JobId,Employer,Address,PhoneNumber,EmailId,SkillsRequired,Qualification,Location,Salary,NoOfVaccancies")] JobDetail jobDetail) { if (ModelState.IsValid) { db.Entry(jobDetail).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jobDetail)); }