protected override void ValidateCore() { if (WorkTaskId.IsBlankIdentity()) { AddError("", "Idenitity is invalid."); } if (CommentId.IsBlankIdentity()) { AddError("", "Idenitity is invalid."); } }
protected override void ValidateCore() { if (WorkTaskId.IsBlankIdentity()) { AddError("", "Idenitity is invalid."); } if (AuthorId.IsBlankIdentity()) { AddError("", "Idenitity is invalid."); } if (!TextValidator.ValidateThatContentIsBetweenSpecifiedLength(Content, 1)) { AddError("", "Content of the comment is invalid."); } }