public void Handle(ChangeOrderDateCommand instance) { OrderAggregate orderAggregate = _unitOfWork .GetRepository <OrderAggregate>() .GetById(instance.EntityId); orderAggregate.ChangeDate(instance.Date); _unitOfWork.GetRepository <OrderAggregate>().Add(orderAggregate); }