Exemplo n.º 1
0
            public void Handle(ChangeOrderDateCommand instance)
            {
                OrderAggregate orderAggregate = _unitOfWork
                                                .GetRepository <OrderAggregate>()
                                                .GetById(instance.EntityId);

                orderAggregate.ChangeDate(instance.Date);
                _unitOfWork.GetRepository <OrderAggregate>().Add(orderAggregate);
            }