Ejemplo n.º 1
0
        public async Task RegisterDeliveryFailureAsync(DeliveryDto delivery)
        {
            var command = new RegisterDeliveryFailureCommand
            {
                DeliveryId = delivery.DeliveryId
            };

            await CommandBus.Current.DispatchAsync(command);
        }
Ejemplo n.º 2
0
        public async Task RegisterNewDeliveryAsync(DeliveryDto delivery)
        {
            var command = new RegisterNewDeliveryCommand
            {
                OrderId = delivery.OrderId
            };

            await CommandBus.Current.DispatchAsync(command);
        }