public void Put(string id, [FromBody] CirclePutRequestModel request) { var command = new CircleUpdateInputData(id, request.Name); bus.Handle(command); }
public void Put(string id, [FromBody] CirclePutRequestModel request) { var command = new CircleUpdateCommand(id, request.Name); circleApplicationService.Update(command); }
public async Task Put([FromRoute] string id, [FromBody] CirclePutRequestModel request) { await _mediator.Send(new CircleUpdateCommand(id, request.Name)); }