protected override async Task OnValidateAsync()
{
var orders = await _orderService.GetByCustomerCommand(_customerID).ExecuteAsync();
if (orders.Value.Any())
{
Invalidate("This customer is associated with one or more orders and cannot be deleted.");
}
}
}