public void updateExceptStudentUpdateServide(ExceptStudentUpdateViewModel exceptStudentUpdateViewModel) { var updatemodel = _IMapper.Map <ExceptStudentUpdateViewModel, Except_Info_Student>(exceptStudentUpdateViewModel); exceptStudentRepository.Update(updatemodel); exceptStudentRepository.SaveChanges(); }
public ActionResult ExceptStudentUpdate(ExceptStudentUpdateViewModel exceptStudentUpdateViewModel) { exceptStudentService.updateExceptStudentUpdateServide(exceptStudentUpdateViewModel); return(Ok("更新成功")); }