public void Handle(UpdateOrderNotificationDetail command) { var order = _repository.Get(command.OrderId); order.UpdateOrderNotificationDetail(command); _repository.Save(order, command.Id.ToString()); }
public void UpdateOrderNotificationDetail(UpdateOrderNotificationDetail orderNotificationDetail) { Update(new OrderNotificationDetailUpdated { OrderId = orderNotificationDetail.OrderId, IsTaxiNearbyNotificationSent = orderNotificationDetail.IsTaxiNearbyNotificationSent, IsUnpairingReminderNotificationSent = orderNotificationDetail.IsUnpairingReminderNotificationSent, InfoAboutPaymentWasSentToDriver = orderNotificationDetail.InfoAboutPaymentWasSentToDriver }); }