Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "GraduationYearId,GraduationYearName")] GraduationYear graduationYear)
 {
     if (ModelState.IsValid)
     {
         db.Entry(graduationYear).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(graduationYear));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "CompanyId,CompanyName,Address,Email,Logo,Website,RegistrationNo,Password")] Company company)
 {
     if (ModelState.IsValid)
     {
         _recruitmentContext.Entry(company).State = EntityState.Modified;
         _recruitmentContext.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(company));
 }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "QualificationId,QualificationName")] Qualification qualification)
 {
     if (ModelState.IsValid)
     {
         db.Entry(qualification).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(qualification));
 }
 public ActionResult Edit([Bind(Include = "JobCategoryId,JobCategoryName")] JobCategory jobCategory)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jobCategory).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(jobCategory));
 }
Ejemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "CourseId,CourseName")] Course course)
 {
     if (ModelState.IsValid)
     {
         db.Entry(course).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(course));
 }
 public ActionResult Edit([Bind(Include = "UniversityId,UniversityName")] University university)
 {
     if (ModelState.IsValid)
     {
         db.Entry(university).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(university));
 }
Ejemplo n.º 7
0
 public ActionResult Edit([Bind(Include = "StateId,StateName,CountryId")] State state)
 {
     if (ModelState.IsValid)
     {
         db.Entry(state).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CountryId = new SelectList(db.Countries, "CountryId", "CountryName", state.CountryId);
     return(View(state));
 }
Ejemplo n.º 8
0
 public ActionResult Edit([Bind(Include = "UserPhotoId,ApplicantId,UserPhotoImage")] UserPhoto userPhoto)
 {
     if (ModelState.IsValid)
     {
         db.Entry(userPhoto).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ApplicantId = new SelectList(db.Applicants, "ApplicantId", "ApplicantUniqueNumber", userPhoto.ApplicantId);
     return(View(userPhoto));
 }
Ejemplo n.º 9
0
 public ActionResult Edit([Bind(Include = "InterviewId,Date,Venue,ApplicantId,JobId,CompanyId,DateScheduled")] Interview interview)
 {
     if (ModelState.IsValid)
     {
         db.Entry(interview).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ApplicantId = new SelectList(db.Applicants, "ApplicantId", "ApplicantUniqueNumber", interview.ApplicantId);
     ViewBag.CompanyId   = new SelectList(db.Companies, "CompanyId", "CompanyName", interview.CompanyId);
     ViewBag.JobId       = new SelectList(db.Jobs, "JobId", "JobRole", interview.JobId);
     return(View(interview));
 }
Ejemplo n.º 10
0
 public ActionResult Edit([Bind(Include = "JobId,JobCategoryId,JobRole,QualificationId,GradeId,CourseId,JobDescription,Applied")] Job job)
 {
     if (ModelState.IsValid)
     {
         db.Entry(job).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CourseId        = new SelectList(db.Courses, "CourseId", "CourseName", job.CourseId);
     ViewBag.GradeId         = new SelectList(db.Grades, "GradeId", "GradeName", job.GradeId);
     ViewBag.JobCategoryId   = new SelectList(db.JobCategories, "JobCategoryId", "JobCategoryName", job.JobCategoryId);
     ViewBag.QualificationId = new SelectList(db.Qualifications, "QualificationId", "QualificationName", job.QualificationId);
     return(View(job));
 }
Ejemplo n.º 11
0
 public ActionResult Edit([Bind(Include = "EducationId,ApplicantId,QualificationId,UniversityId,GradeId,CourseId,AboutYou,GraduationYearId")] Education education)
 {
     if (ModelState.IsValid)
     {
         db.Entry(education).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CourseId         = new SelectList(db.Courses, "CourseId", "CourseName", education.CourseId);
     ViewBag.GradeId          = new SelectList(db.Grades, "GradeId", "GradeName", education.GradeId);
     ViewBag.GraduationYearId = new SelectList(db.GraduationYears, "GraduationYearId", "GraduationYearName", education.GraduationYearId);
     ViewBag.QualificationId  = new SelectList(db.Qualifications, "QualificationId", "QualificationName", education.QualificationId);
     ViewBag.UniversityId     = new SelectList(db.Universities, "UniversityId", "UniversityName", education.UniversityId);
     return(View(education));
 }
Ejemplo n.º 12
0
 public void EditCountry(Country country)
 {
     _recruitmentContext.Entry(country).State = System.Data.Entity.EntityState.Modified;
     _recruitmentContext.SaveChanges();
 }
Ejemplo n.º 13
0
 public void EditGrade(Grade grade)
 {
     _recruitmentContext.Entry(grade).State = EntityState.Modified;
     _recruitmentContext.SaveChanges();
 }