Example #1
0
        public async Task <IActionResult> Update([FromBody] UpdateClientCommandRequest request, [FromRoute] Guid id)
        {
            request.Id = id;
            var response = await _mediator.Send(request);

            return(Ok(response));
        }
Example #2
0
        public async Task <IActionResult> Update([FromBody] UpdateClientCommandRequest request)
        {
            var response = await _mediator.Send(request);

            return(Ok(response));
        }
Example #3
0
        public async Task <IActionResult> Put([FromBody] UpdateClientCommandRequest updateClientCommand)
        {
            var response = await _mediator.Send(updateClientCommand);

            return(CustomResponse.GetResponse(response));
        }