Added the [Obsolete("Use the related procedure or view.")] attribute to DeleteOutResCommand, its handler, and its validator to indicate these should no longer be used and to guide consumers toward the recommended procedure or view.
15 lines
475 B
C#
15 lines
475 B
C#
using FluentValidation;
|
|
|
|
namespace ReC.Application.OutResults.Commands;
|
|
|
|
[Obsolete("Use the related procedure or view.")]
|
|
public class DeleteOutResCommandValidator : AbstractValidator<DeleteOutResCommand>
|
|
{
|
|
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");
|
|
}
|
|
} |