/// <summary> /// 添加工作经历 /// </summary> /// <param name="workExperience"><see cref="WorkExperience"/></param> /// <returns>创建成功返回true,否则返回false</returns> public bool CreateWorkExperience(WorkExperience workExperience) { if (workExperience == null) { return(false); } long affectId = Convert.ToInt64(workExperienceRepository.Insert(workExperience)); UserProfile userProfile = profileRepository.Get(workExperience.UserId); EventBus <UserProfile> .Instance().OnAfter(userProfile, new CommonEventArgs(EventOperationType.Instance().Update())); if (affectId > 0) { profileRepository.UpdateIntegrity(workExperience.UserId); return(true); } return(false); }
public bool Insert(WorkExperienceParam workExperienceParam) { return(_workExperienceRepository.Insert(workExperienceParam)); }