Validate method
Implementation
@override
void Validate() {
if (StringUtils.IsNullOrEmpty(EmailAddress)) {
throw ServiceLocalException("The e-mail address is invalid.");
}
if (Photo == null || Photo!.isEmpty) {
throw ServiceLocalException("The user photo must be specified.");
}
super.Validate();
}