public ActionResult Edit([Bind(Include = "JobSkillId,JobSkillName,SkillType,SkillCategory")] JobSkill jobSkill) { if (ModelState.IsValid) { db.Entry(jobSkill).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jobSkill)); }
public ActionResult Edit([Bind(Include = "EthnicityId,EthnicityName")] Ethnicity ethnicity) { if (ModelState.IsValid) { db.Entry(ethnicity).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ethnicity)); }
public ActionResult Edit([Bind(Include = "ResumeId,FirstName,LastName,PhoneNumber,Email")] Resume resume) { if (ModelState.IsValid) { db.Entry(resume).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(resume)); }
public ActionResult Edit([Bind(Include = "LanguageCode,EnglishName,NativeLanguage")] Language language) { if (ModelState.IsValid) { db.Entry(language).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(language)); }
public ActionResult Edit([Bind(Include = "WorkExperienceId,ResumeId,BusinessName,StartDate,EndDate,JobTitle,Description")] WorkExperience workExperience) { if (ModelState.IsValid) { db.Entry(workExperience).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Edit", "Resume", new { id = workExperience.ResumeId })); } return(View(workExperience)); }
public ActionResult Edit([Bind(Include = "BusinessId,BusinessName,BusinessIndustry,ShortBusinessDescription,LongBusinessDescription,State,City,StreetAddress,EmailAddress,PhoneNumber,Image")] BusinessProfile businessProfile) { if (ModelState.IsValid) { db.Entry(businessProfile).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.IndustryId = new SelectList(db.Industries, "IndustryId", "IndustryName"); return(View(businessProfile)); }