Validate method

  1. @override
void Validate()
override
Validate request.

Implementation

@override
void Validate() {
  if (StringUtils.IsNullOrEmpty(EmailAddress)) {
    throw ServiceLocalException("The e-mail address is invalid.");
  }

  if (StringUtils.IsNullOrEmpty(UserPhotoSize)) {
    throw ServiceLocalException("The user photo size must be specified.");
  }

  super.Validate();
}