Exemplo n.º 1
0
        /// <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()));
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public IActionResult UpdateWorkExperience([FromBody] WorkExperience model)
 {
     wexp_repo.Update(model);
     return(new OkObjectResult(new { WorkExperienceID = model.WorkExperienceId }));
 }