public void Put(string id, JobPrerequisite jobSkillsyObj) { try { jobSkillsyObj.Id = new Guid(id); ServiceFactory.GetJobPrerequisite().Update(jobSkillsyObj); } catch (Exception exp) { } }
/// <summary> /// To create a new work history details /// </summary> /// <param name="jobSeekerWorkHistoryObj">WorkHistory object</param> public void Post(JobPrerequisite jobPrerequisiteObj) { try { string prerequisiteId = jobPrerequisiteObj.PrerequisiteTypeId; string[] prerequisiteList = prerequisiteId.Split(','); for (int i = 0; i < prerequisiteList.Length; i++) { jobPrerequisiteObj.JobId = jobPrerequisiteObj.JobId; jobPrerequisiteObj.Required = jobPrerequisiteObj.Required; jobPrerequisiteObj.PrerequisiteTypeId = prerequisiteList[i]; ServiceFactory.GetJobPrerequisite().Create(jobPrerequisiteObj); } } catch (Exception ex) { } }