// 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)); }
public async Task Delete(int id, [FromBody] API.Models.Question value) { await _commandBus.Send(new QuestionDeleteCommand(id, value.Version)); }
// POST api/<controller> public async Task Post([FromBody] API.Models.Question value) { await _commandBus.Send(new QuestionCreateCommand(value.QuestionText)); }