public void Handle(OrderCreated_V2 message) { Console.WriteLine( $"Shipping BC storing: Order: {message.OrderId} User: {message.UserId} Address: {message.AddressId} Shipping Type: {message.ShippingTypeId}"); var order = new ShippingOrder { UserId = message.UserId, OrderId = message.OrderId, AddressId = message.AddressId, ShippingTypeId = message.ShippingTypeId }; ShippingDatabase.AddOrderDetails(order); }
public static void AddOrderDetails(ShippingOrder order) { Orders.Add(order); }