public async Task <IActionResult> Update([FromBody] UpdateClientContract contract) { var result = await mediator.Send(new UpdateClientCommand(contract)); if (result.ErrorModels?.Count > 0) { return(new BadRequestObjectResult(result.ErrorModels)); } return(Ok()); }
public UpdateClientCommand(UpdateClientContract updateClient) { UpdateClient = updateClient; }