public async Task <ActionResult <HttpResultModel <CommandsReadModel> > > Put(CancellationToken cancellationToken, CommandsUpdateModel commandsUpdateModel)
        {
            _logger.LogInformation("Update command {0} - {1}", commandsUpdateModel.Id, commandsUpdateModel.Name);

            var resultCommandsReadModel = await _commandsBusiness.UpdateCommand(cancellationToken, commandsUpdateModel);

            return(new HttpResultModel <CommandsReadModel>()
            {
                Result = true,
                BusinessMessage = _localizer["Commande mise à jour avec succès."],
                Model = resultCommandsReadModel
            });
        }
 public async Task <CommandsReadModel> UpdateCommand(CancellationToken cancellationToken, CommandsUpdateModel commandsUpdateModel)
 {
     return(await _commandsDao.UpdateModel(commandsUpdateModel.Id, commandsUpdateModel, cancellationToken));
 }