diff --git a/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs b/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs new file mode 100644 index 0000000..843a6cd --- /dev/null +++ b/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs @@ -0,0 +1,14 @@ +using FluentValidation; + +namespace ReC.Application.OutResults.Commands; + +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"); + } +} \ No newline at end of file