protected virtual bool ValidateEntity() { if (EntityControl != null) { return(EntityControl.IsValid()); } return(true); }