/// <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, SkillReference jobSeekerSkillReferenceObj) { try { jobSeekerSkillReferenceObj.JobSeekerId = SkillsmartUser.GuidStr(HttpContext.Current.User); jobSeekerSkillReferenceObj.Id = new Guid(id); ServiceFactory.GetSkillReference().Update(jobSeekerSkillReferenceObj); } catch (Exception exp){} }
/// <summary> /// To create a new work history details /// </summary> /// <param name="jobSeekerWorkHistoryObj">WorkHistory object</param> public string Post(SkillReference jobSeekerSkillReferenceObj) { jobSeekerSkillReferenceObj.JobSeekerId = SkillsmartUser.GuidStr(HttpContext.Current.User); ServiceFactory.GetSkillReference().Create(jobSeekerSkillReferenceObj); return jobSeekerSkillReferenceObj.Id.ToString(); }