static private Create ( IDatabase db, Guess, no, string question, Guess, yes ) : Guess, | ||
db | IDatabase | |
no | Guess, | |
question | string | |
yes | Guess, | |
Résultat | Guess, |
public async Task <Guid> SaveUserGuess(UserGuessRequest request, Guid userId, Guid gameId) { var question = await questionRepository.GetQuestion(request.QuestionId); var guess = Guess.Create(request.GuessUser, request.QuestionVariants, userId, question); await guessRepository.SaveGuess(guess); await guessRepository.SaveChanges(); await gameStatusService.CheckIfAllAnswered(gameId); return(guess.Id); }