Files
Knots/Knots/Validators/Role/DeleteRoleDtoValidator.cs
2026-03-19 15:09:54 +01:00

15 lines
315 B
C#

using FastEndpoints;
using FluentValidation;
using Knots.DTO.Role;
namespace Knots.Validators.Role;
public class DeleteRoleDtoValidator : Validator<DeleteRoleDto>
{
public DeleteRoleDtoValidator()
{
RuleFor(x => x.Id)
.NotEmpty()
.WithMessage("Id cannot be empty");
}
}