/// <summary> /// To update work history details of the jobseeker /// </summary> /// <param name="id">WorkHistoryId</param> /// <param name="jobSeekerWorkHistoryObj">WorkHistoryObject</param> public void Put(string id, SkillSupportingMaterial jobSeekerSkillSupportingMaterialObj) { try { jobSeekerSkillSupportingMaterialObj.JobSeekerId = SkillsmartUser.GuidStr(HttpContext.Current.User); jobSeekerSkillSupportingMaterialObj.Id = new Guid(id); ServiceFactory.GetSkillSupportingMaterial().Update(jobSeekerSkillSupportingMaterialObj); } catch (Exception exp){} }
/// <summary> /// To create a new work history details /// </summary> /// <param name="jobSeekerWorkHistoryObj">WorkHistory object</param> public string Post(SkillSupportingMaterial jobSeekerSkillSupportingMaterialObj) { jobSeekerSkillSupportingMaterialObj.JobSeekerId = SkillsmartUser.GuidStr(HttpContext.Current.User); ServiceFactory.GetSkillSupportingMaterial().Create(jobSeekerSkillSupportingMaterialObj); return jobSeekerSkillSupportingMaterialObj.Id.ToString(); }