public ActionResult Edit([Bind(Include = "JobSeekerID,Username,Password,FirstName,LastName,Email,Phone,CreateDate")] JobSeeker jobSeeker) { if (ModelState.IsValid) { db.Entry(jobSeeker).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jobSeeker)); }
public ActionResult Edit([Bind(Include = "JobID,CompanyName,Title,JobDescription,City,State,CreateDate")] JobList jobList) { if (ModelState.IsValid) { db.Entry(jobList).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jobList)); }