/// <summary> /// 更新工作经历 /// </summary> /// <param name="workExperience"><see cref="WorkExperience"/></param> public void UpdateWorkExperience(WorkExperience workExperience) { if (workExperience == null) { return; } workExperienceRepository.Update(workExperience); UserProfile userProfile = profileRepository.Get(workExperience.UserId); EventBus <UserProfile> .Instance().OnAfter(userProfile, new CommonEventArgs(EventOperationType.Instance().Update())); }
public bool Update(int?id, WorkExperienceParam workExperienceParam) { if (_workExperienceRepository.Get(id) == null) { MessageBox.Show("Sorry, your data is not found"); } else { status = _workExperienceRepository.Update(id, workExperienceParam); } return(status); }
public IActionResult UpdateWorkExperience([FromBody] WorkExperience model) { wexp_repo.Update(model); return(new OkObjectResult(new { WorkExperienceID = model.WorkExperienceId })); }