Skip to content

Commit

Permalink
update examHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
vuanh25 committed Dec 19, 2023
1 parent d4f0401 commit b25a854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace VNH.Application.DTOs.Catalog.ExamHistory
public class CreateExamHistoryDto
{

public Guid Id { get; set; } = Guid.NewGuid();
public Guid? Id { get; set; } = Guid.Empty;
public Guid MultipleChoiceId { get; set; }
public Guid UserId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task<ApiResult<ExamHistoryResponseDto>> Create(CreateExamHistoryDt
var user = await _userManager.FindByEmailAsync(name);
var examhistory = _mapper.Map<ExamHistory>(requestDto);
var multiples = await _dataContext.MultipleChoices.FirstOrDefaultAsync(x => x.Id.Equals(requestDto.MultipleChoiceId));

examhistory.Id = Guid.NewGuid();
examhistory.MultipleChoiceId = requestDto.MultipleChoiceId;
examhistory.UserId = requestDto.UserId;
examhistory.StarDate = requestDto.StarDate;
Expand Down

0 comments on commit b25a854

Please sign in to comment.