public ActionResult Edit([Bind(Include = "Name,Password,Emailid,MobileNo,Location,photo,Position,Experience,PreferredJobLocation,Skills,Dateofapplication,Resume")] JobSeeker jobSeeker)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jobSeeker).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(jobSeeker));
 }
 public ActionResult Edit([Bind(Include = "Name,Password,Emailid,MobileNo,LocationOfTheOpenings,photo,Designation,CurrentOpenings,Experience,EmployerClients,Skills,Updated")] Employer employer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(employer));
 }
Esempio n. 3
0
 public ActionResult Edit([Bind(Include = "Name,status")] Approved approved)
 {
     if (ModelState.IsValid)
     {
         db.Entry(approved).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(approved));
 }
 public ActionResult Edit([Bind(Include = "Jobid,Designation,Company,ComapnyName,Salary")] Job job)
 {
     if (ModelState.IsValid)
     {
         db.Entry(job).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(job));
 }