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