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