using FluentValidation; namespace ReC.Application.OutResults.Commands; [Obsolete("Use the related procedure or view.")] public class DeleteOutResCommandValidator : AbstractValidator { public DeleteOutResCommandValidator() { RuleFor(x => x) .Must(x => x.ActionId.HasValue || x.ProfileId.HasValue) .WithMessage("At least one of ActionId or ProfileId must be provided.") .WithName("Identifier"); } }