Ajout d'update pour patch + début validator
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
using FastEndpoints;
|
||||
using FluentValidation;
|
||||
using Knots.DTO.Group;
|
||||
|
||||
namespace Knots.Validators.Group;
|
||||
|
||||
public class DeleteGroupDtoValidator
|
||||
public class DeleteGroupDtoValidator : Validator<DeleteGroupDto>
|
||||
{
|
||||
|
||||
public DeleteGroupDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("Id is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user