public void CreateOrder(OrderRequest order) { this.logger.LogStartingOrderCreation(); try { var command = new OrderCreationCommand(this.logger, order); command.Execute(); this.logger.LogOrderCreationSuccessfull(); } catch (Exception exception) { this.logger.LogOrderCreationFailed(exception); } }
public void CreateOrder(OrderRequest order) { this.logger.LogStartingOrderCreation(); try { var command = new OrderCreationCommand(this.logger, order); command.Execute(); this.logger.LogOrderCreationSuccessfull(); } catch (Exception exception) { this.logger.LogOrderCreationFailed(exception); } }