public ActionResult Edit([Bind(Include = "Id,RegistrationDate,CompanyWebsite,ContactPhone,ContactName,CompanyLogo,TimeStamp")] CompanyProfilePoco companyProfilePoco) { if (ModelState.IsValid) { db.Entry(companyProfilePoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(companyProfilePoco)); }
public ActionResult Edit([Bind(Include = "Id,Role,IsInactive")] SecurityRolePoco securityRolePoco) { if (ModelState.IsValid) { db.Entry(securityRolePoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(securityRolePoco)); }
public ActionResult Edit([Bind(Include = "LanguageID,Name,NativeName")] SystemLanguageCodePoco systemLanguageCodePoco) { if (ModelState.IsValid) { db.Entry(systemLanguageCodePoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(systemLanguageCodePoco)); }
public ActionResult Edit([Bind(Include = "Id,Login,Password,Created,PasswordUpdate,AgreementAccepted,IsLocked,IsInactive,EmailAddress,PhoneNumber,FullName,ForceChangePassword,PrefferredLanguage")] SecurityLoginPoco securityLoginPoco) { if (ModelState.IsValid) { db.Entry(securityLoginPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(securityLoginPoco)); }
public ActionResult Edit([Bind(Include = "Id,Job,Skill,SkillLevel,Importance")] CompanyJobSkillPoco companyJobSkillPoco) { if (ModelState.IsValid) { db.Entry(companyJobSkillPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Job = new SelectList(db.CompanyJobs, "Id", "Id", companyJobSkillPoco.Job); return(View(companyJobSkillPoco)); }
public ActionResult Edit([Bind(Include = "Id,RegistrationDate,CompanyWebsite,ContactPhone,ContactName,CompanyLogo,TimeStamp")] CompanyProfilePoco companyProfilePoco) { if (ModelState.IsValid) { db.Entry(companyProfilePoco).State = EntityState.Modified; db.SaveChanges(); System.Web.HttpContext.Current.Session["companyProfile"] = companyProfilePoco; return(RedirectToAction("Edit", "CompanyDescription")); } return(View(companyProfilePoco)); }
public ActionResult Edit([Bind(Include = "Id,Login,SourceIP,LogonDate,IsSuccesful")] SecurityLoginsLogPoco securityLoginsLogPoco) { if (ModelState.IsValid) { db.Entry(securityLoginsLogPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Login = new SelectList(db.SecurityLogins, "Id", "Login", securityLoginsLogPoco.Login); return(View(securityLoginsLogPoco)); }
public ActionResult Edit([Bind(Include = "Id,Company,CountryCode,Province,Street,City,PostalCode")] CompanyLocationPoco companyLocationPoco) { if (ModelState.IsValid) { db.Entry(companyLocationPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Company = new SelectList(db.CompanyProfilePocoes, "Id", "CompanyWebsite", companyLocationPoco.Company); return(View(companyLocationPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Resume,LastUpdated")] ApplicantResumePoco applicantResumePoco) { if (ModelState.IsValid) { db.Entry(applicantResumePoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.ApplicantProfiles, "Id", "Currency", applicantResumePoco.Applicant); return(View(applicantResumePoco)); }
public ActionResult Edit([Bind(Include = "Id,Job,JobName,JobDescriptions")] CompanyJobDescriptionPoco companyJobDescriptionPoco) { if (ModelState.IsValid) { db.Entry(companyJobDescriptionPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Job = new SelectList(db.CompanyJobPocoes, "Id", "Id", companyJobDescriptionPoco.Job); return(View(companyJobDescriptionPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Major,CertificateDiploma,StartDate,CompletionDate,CompletionPercent")] ApplicantEducationPoco applicantEducationPoco) { if (ModelState.IsValid) { db.Entry(applicantEducationPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.ApplicantProfilePocoes, "Id", "Currency", applicantEducationPoco.Applicant); return(View(applicantEducationPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Skill,SkillLevel,StartMonth,StartYear,EndMonth,EndYear")] ApplicantSkillPoco applicantSkillPoco) { if (ModelState.IsValid) { db.Entry(applicantSkillPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.ApplicantProfiles, "Id", "Currency", applicantSkillPoco.Applicant); return(View(applicantSkillPoco)); }
public ActionResult Edit([Bind(Include = "Id,Login,CurrentSalary,CurrentRate,Currency,Country,Province,Street,City,PostalCode,TimeStamp")] ApplicantProfilePoco applicantProfilePoco) { if (ModelState.IsValid) { db.Entry(applicantProfilePoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Edit")); } ViewBag.Country = new SelectList(db.SystemCountryCodes, "Code", "Name", applicantProfilePoco.Country); return(View(applicantProfilePoco)); }
public ActionResult Edit([Bind(Include = "Id,Company,ProfileCreated,IsInactive,IsCompanyHidden")] CompanyJobPoco companyJobPoco) { if (ModelState.IsValid) { db.Entry(companyJobPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Company = new SelectList(db.CompanyProfiles, "Id", "CompanyWebsite", companyJobPoco.Company); return(View(companyJobPoco)); }
public ActionResult Edit([Bind(Include = "Id,Job,Skill,SkillLevel,Importance")] CompanyJobSkillPoco companyJobSkillPoco) { if (ModelState.IsValid) { db.Entry(companyJobSkillPoco).State = EntityState.Modified; companyJobSkillPoco.CompanyJobs = db.CompanyJobs.Where(e => e.Id == companyJobSkillPoco.Job).FirstOrDefault(); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Job = new SelectList(db.CompanyJobsDescriptions, "Job", "JobName", companyJobSkillPoco.Job); return(View(companyJobSkillPoco)); }
public ActionResult Edit([Bind(Include = "Id,Login,Role")] SecurityLoginsRolePoco securityLoginsRolePoco) { if (ModelState.IsValid) { db.Entry(securityLoginsRolePoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Login = new SelectList(db.SecurityLogins, "Id", "Login", securityLoginsRolePoco.Login); ViewBag.Role = new SelectList(db.SecurityRoles, "Id", "Role", securityLoginsRolePoco.Role); return(View(securityLoginsRolePoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Job,ApplicationDate,TimeStamp")] ApplicantJobApplicationPoco applicantJobApplicationPoco) { if (ModelState.IsValid) { db.Entry(applicantJobApplicationPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.ApplicantProfiles, "Id", "Currency", applicantJobApplicationPoco.Applicant); ViewBag.Job = new SelectList(db.CompanyJobs, "Id", "Id", applicantJobApplicationPoco.Job); return(View(applicantJobApplicationPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Resume,LastUpdated")] ApplicantResumePoco applicantResumePoco) { if (ModelState.IsValid) { db.Entry(applicantResumePoco).State = EntityState.Modified; applicantResumePoco.ApplicantProfiles = db.ApplicantProfiles.Where(t => t.Login == applicantResumePoco.Applicant).FirstOrDefault(); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.SecurityLogins, "Id", "FullName", applicantResumePoco.Applicant); return(View(applicantResumePoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Major,CertificateDiploma,StartDate,CompletionDate,CompletionPercent")] ApplicantEducationPoco applicantEducationPoco) { if (ModelState.IsValid) { db.Entry(applicantEducationPoco).State = EntityState.Modified; applicantEducationPoco.ApplicantProfiles = db.ApplicantProfiles.Where(t => t.Login == applicantEducationPoco.Applicant).FirstOrDefault(); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.SecurityLogins, "Id", "FullName", applicantEducationPoco.Applicant); return(View(applicantEducationPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,CompanyName,CountryCode,Location,JobTitle,JobDescription,StartMonth,StartYear,EndMonth,EndYear")] ApplicantWorkHistoryPoco applicantWorkHistoryPoco) { if (ModelState.IsValid) { db.Entry(applicantWorkHistoryPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.ApplicantProfiles, "Id", "Currency", applicantWorkHistoryPoco.Applicant); ViewBag.CountryCode = new SelectList(db.SystemCountryCodes, "Code", "Name", applicantWorkHistoryPoco.CountryCode); return(View(applicantWorkHistoryPoco)); }
public ActionResult Edit([Bind(Include = "Id,Company,LanguageId,CompanyName,CompanyDescription")] CompanyDescriptionPoco companyDescriptionPoco) { if (ModelState.IsValid) { db.Entry(companyDescriptionPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Company = new SelectList(db.CompanyProfilePocoes, "Id", "CompanyWebsite", companyDescriptionPoco.Company); ViewBag.LanguageId = new SelectList(db.SystemLanguageCodes, "LanguageID", "Name", companyDescriptionPoco.LanguageId); return(View(companyDescriptionPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Job,ApplicationDate")] ApplicantJobApplicationPoco applicantJobApplicationPoco) { if (ModelState.IsValid) { db.Entry(applicantJobApplicationPoco).State = EntityState.Modified; applicantJobApplicationPoco.ApplicantProfiles = db.ApplicantProfiles.Where(t => t.Login == applicantJobApplicationPoco.Applicant).FirstOrDefault(); applicantJobApplicationPoco.CompanyJobs = db.CompanyJobs.Where(t => t.Id == applicantJobApplicationPoco.Job).FirstOrDefault(); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.SecurityLogins, "Id", "FullName", applicantJobApplicationPoco.Applicant); ViewBag.Job = new SelectList(db.CompanyJobsDescriptions, "Job", "JobName", applicantJobApplicationPoco.Job); return(View(applicantJobApplicationPoco)); }
public ActionResult Edit([Bind(Include = "Id,Company,LanguageId,CompanyName,CompanyDescription,TimeStamp")] CompanyDescriptionPoco companyDescriptionPoco) { CompanyProfilePoco profile = new CompanyProfilePoco(); profile = (CompanyProfilePoco)System.Web.HttpContext.Current.Session["companyProfile"]; companyDescriptionPoco.Company = profile.Id; if (ModelState.IsValid) { db.Entry(companyDescriptionPoco).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Company = new SelectList(db.CompanyProfiles, "Id", "CompanyWebsite", companyDescriptionPoco.Company); ViewBag.LanguageId = new SelectList(db.SystemLanguageCodes, "LanguageID", "Name", companyDescriptionPoco.LanguageId); return(View(companyDescriptionPoco)); }