Beispiel #1
0
 public ActionResult Edit([Bind(Include = "Id,Part,Question")] TestQuestion testQuestion)
 {
     if (ModelState.IsValid)
     {
         db.Entry(testQuestion).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(testQuestion));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "CompanyId,CompanyName,CompanyWebsite,CompanyInformation,Password,CompanyAddress,CompanyEmail,CompanyPhoneNo,CompanyLogo,CompanyBenefits")] Company company)
 {
     if (ModelState.IsValid)
     {
         db.Entry(company).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(company));
 }
Beispiel #3
0
 public ActionResult Edit([Bind(Include = "JobseekerId,Name,Email,Password,PhoneNo,Qualification,FieldOfStudy,PreferredLocation,PreferredSalary,PreferredField,Resume,Picture")] Jobseeker jobseeker)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jobseeker).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(jobseeker));
 }
Beispiel #4
0
 public ActionResult Edit([Bind(Include = "JobId,CompanyId,JobTitle,Salary,JobRequirement,JobDescription,Location,ShortDescription,PostingDate,ClosingDate")] Job job)
 {
     if (ModelState.IsValid)
     {
         db.Entry(job).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CompanyId = new SelectList(db.Companies, "CompanyId", "CompanyName", job.CompanyId);
     return(View(job));
 }
Beispiel #5
0
 public ActionResult Edit([Bind(Include = "TestId,JobseekerId,Question1,Question2,Question3,Question4,Question5,Question6,Question7,Question8,Question9,Question10,Question11,Question12,Question13,Question14,Question15,Question16,Question17,Question18,Question19,Question20,Question21,Question22,Question23,Question24,Question25,Question26,Question27,Question28,Question29,Question30,Question31,Question32,Question33")] Test test)
 {
     if (ModelState.IsValid)
     {
         db.Entry(test).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.JobseekerId = new SelectList(db.Jobseekers, "JobseekerId", "Name", test.JobseekerId);
     return(View(test));
 }
Beispiel #6
0
 public ActionResult Edit([Bind(Include = "SkillId,JobseekerId,SkillAcquired")] Skill skill)
 {
     if (ModelState.IsValid)
     {
         db.Entry(skill).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.JobseekerId = new SelectList(db.Jobseekers, "JobseekerId", "Name", skill.JobseekerId);
     return(View(skill));
 }
 public ActionResult Edit([Bind(Include = "WEId,JobseekerId,WorkingExp")] WorkingExperience workingExperience)
 {
     if (ModelState.IsValid)
     {
         db.Entry(workingExperience).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.JobseekerId = new SelectList(db.Jobseekers, "JobseekerId", "Name", workingExperience.JobseekerId);
     return(View(workingExperience));
 }
Beispiel #8
0
 public ActionResult Edit([Bind(Include = "CompanyId,CompanyName,Address,Email,PhoneNo,CompanyWebsite,CompanyInformation")] Company company)
 {
     if (ModelState.IsValid)
     {
         db.Entry(company).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         int lastProductId = db.Companies.Max(item => item.CompanyId);
         return(RedirectToAction("Details", new { id = lastProductId }));
     }
     return(View(company));
 }
Beispiel #9
0
 public ActionResult Edit([Bind(Include = "LanguageId,JobseekerId,LanguageLearned")] Language language)
 {
     if (ModelState.IsValid)
     {
         db.Entry(language).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.JobseekerId = new SelectList(db.Jobseekers, "JobseekerId", "Name", language.JobseekerId);
     return(View(language));
 }
Beispiel #10
0
 public ActionResult Edit([Bind(Include = "ApplicationId,JobseekerId,JobId,ApplicationDate")] Application application)
 {
     if (ModelState.IsValid)
     {
         db.Entry(application).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.JobseekerId = new SelectList(db.Jobseekers, "JobseekerId", "Name", application.JobseekerId);
     ViewBag.JobId       = new SelectList(db.Jobs, "JobId", "JobTitle", application.JobId);
     return(View(application));
 }