/// <summary> /// To create a schoarship details for a jobseeker related to an education details /// </summary> /// <param name="scholarshipObj">scholarship Object</param> public string Post(Scholarship scholarshipObj) { scholarshipObj.JobSeekerId = SkillsmartUser.GuidStr(HttpContext.Current.User); ServiceFactory.GetJobSeekerScholarship().Create(scholarshipObj); return scholarshipObj.Id.ToString(); }
/// <summary> /// To update Scholarship details /// </summary> /// <param name="id">scholarshipId</param> /// <param name="scholarshipObj">scholarship Object</param> public void Put(string id, Scholarship scholarshipObj) { try { scholarshipObj.JobSeekerId = SkillsmartUser.GuidStr(HttpContext.Current.User); scholarshipObj.Id = new Guid(id); scholarshipObj.Id = new Guid(id); ServiceFactory.GetJobSeekerScholarship().Update(scholarshipObj); } catch (Exception exp){} }