Пример #1
0
 public void Post([FromBody] Answer answer)
 {
     // There is only one POST method for a answer,
     // the logic is taken care of by the TriviaService
     // NOTE: We post in a ViewModel.Answer.  There is no
     // matching Model.Answer, as we map the data to a different place
     // instead:  Round.Player1Answer, or Round.Player2Answer
     _triviaService.MakeAnswer(answer);
 }