|
|
|
@ -64,11 +64,11 @@ namespace Shentun.WebPeis.QuestionRegisters |
|
|
|
if (questionRegister == null) |
|
|
|
{ |
|
|
|
//没有登记过
|
|
|
|
var questionRegisterEntity = new QuestionRegister(); |
|
|
|
questionRegisterEntity.PersonId = input.PersonId; |
|
|
|
questionRegisterEntity = await _questionRegisterManager.CreateAsync(questionRegisterEntity); |
|
|
|
await _repository.InsertAsync(questionRegisterEntity); |
|
|
|
questionRegisterDto.QuestionRegisterId = questionRegisterEntity.QuestionRegisterId; |
|
|
|
questionRegister = new QuestionRegister(); |
|
|
|
questionRegister.PersonId = input.PersonId; |
|
|
|
questionRegister = await _questionRegisterManager.CreateAsync(questionRegister); |
|
|
|
await _repository.InsertAsync(questionRegister); |
|
|
|
questionRegisterDto.QuestionRegisterId = questionRegister.QuestionRegisterId; |
|
|
|
await _unitOfWorkManager.Current.SaveChangesAsync(); |
|
|
|
//return questionRegisterDto;
|
|
|
|
} |
|
|
|
|