Exemplo n.º 1
0
 // PUT: api/<controller>/5
 public async Task Put(int id, [FromBody] API.Models.Question value)
 {
     await _commandBus.Send(new QuestionTextChangeCommand(value.Id, value.QuestionText, value.Version));
 }
Exemplo n.º 2
0
 public async Task Delete(int id, [FromBody] API.Models.Question value)
 {
     await _commandBus.Send(new QuestionDeleteCommand(id, value.Version));
 }
Exemplo n.º 3
0
 // POST api/<controller>
 public async Task Post([FromBody] API.Models.Question value)
 {
     await _commandBus.Send(new QuestionCreateCommand(value.QuestionText));
 }