partial void DeleteworkExperience(workExperience instance);
partial void InsertworkExperience(workExperience instance);
partial void UpdateworkExperience(workExperience instance);
public ActionResult workExperience(workExperience parWorkExp) { workExperience workexp = (from workexps in db2.workExperiences where workexps.email == parWorkExp.email select workexps).SingleOrDefault(); if (workexp == null) { parWorkExp.createdDate = DateTime.Now; db2.workExperiences.InsertOnSubmit(parWorkExp); db2.SubmitChanges(); } else { workexp.modifiedDate = DateTime.Now; workexp.employmentStartDate = parWorkExp.employmentStartDate; workexp.employmentEndDate = parWorkExp.employmentEndDate; workexp.companyName = parWorkExp.companyName; workexp.email = parWorkExp.email; workexp.jobResponsibility = parWorkExp.jobResponsibility; workexp.position = parWorkExp.position; workexp.monthlySalary = parWorkExp.monthlySalary; db2.SubmitChanges(); } return RedirectToAction("otherSkill", "careerProfile", new { email = Session["userId"].ToString(), id = 0 }); }