修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3f6e81bc3e
commit
469e7cb49b
|
@ -342,6 +342,16 @@ namespace IRaCIS.Core.Application.Service
|
|||
[HttpPost]
|
||||
public async Task<IResponseOutput> SubmitCustomTag(ReadingCustomTagDto inDto)
|
||||
{
|
||||
|
||||
if (inDto.Id == null&&inDto.MarkId!=null)
|
||||
{
|
||||
var oldMark = await _readingTaskQuestionMarkRepository.Where(x => x.MarkId == inDto.MarkId && x.QuestionId == null).FirstOrDefaultAsync();
|
||||
if( oldMark != null)
|
||||
{
|
||||
inDto.Id = oldMark.Id;
|
||||
}
|
||||
}
|
||||
|
||||
var entity = await _readingTaskQuestionMarkRepository.InsertOrUpdateAsync(inDto, true);
|
||||
return ResponseOutput.Ok(entity.Id.ToString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue