예제 #1
0
        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());
        }
예제 #2
0
 public UpdateClientCommand(UpdateClientContract updateClient)
 {
     UpdateClient = updateClient;
 }