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));
 }
Exemplo n.º 4
0
 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));
 }
Exemplo n.º 5
0
 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));
 }
Exemplo n.º 6
0
        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));
        }