示例#1
0
        public void Put(string id, [FromBody] CirclePutRequestModel request)
        {
            var command = new CircleUpdateInputData(id, request.Name);

            bus.Handle(command);
        }
示例#2
0
        public void Put(string id, [FromBody] CirclePutRequestModel request)
        {
            var command = new CircleUpdateCommand(id, request.Name);

            circleApplicationService.Update(command);
        }
示例#3
0
 public async Task Put([FromRoute] string id, [FromBody] CirclePutRequestModel request)
 {
     await _mediator.Send(new CircleUpdateCommand(id, request.Name));
 }