protected override void OnValidate() { var orders = _ordersDataProxy.GetByProduct(_productID); if (orders.Any()) { Invalidate(_errorMessage); } }