/// <summary> /// Command handler. /// </summary> /// <param name="command">Command to handle.</param> public void Handle(GetNewShoppingCartCommand command) { Customer customer = customerRepository.GetById(command.userId);; command.SetResult(shoppingCardRepository.ClearShoppingCart(customer.ShoppingCartId)); }