public override void Validate() { if (!ServerId.IsValid()) { AddNotification("Servidor invalido"); } if (string.IsNullOrEmpty(Description)) { AddNotification("Descrição não foi informada"); } if (string.IsNullOrEmpty(FileSystemPath)) { AddNotification("Local de salvamento do arquivo não foi informado"); } if (VideoContent == null) { AddNotification("Video não foi informado"); } else if (Buffer.ByteLength(VideoContent) <= 0) { AddNotification("Video não foi informado"); } }
public override void Validate() { if (!ServerId.IsValid()) { AddNotification("Servidor invalido"); } if (!VideoId.IsValid()) { AddNotification("Video invalido"); } }
public override void Validate() { if (!ServerId.IsValid()) { AddNotification("Servidor invalido"); } if (string.IsNullOrEmpty(Ip)) { AddNotification("Ip não informado"); } if (Port <= 0) { AddNotification("Porta invalida"); } }