15 lines
317 B
C#
15 lines
317 B
C#
using FastEndpoints;
|
|
using FluentValidation;
|
|
using Knots.DTO.Group;
|
|
|
|
namespace Knots.Validators.Group;
|
|
|
|
public class DeleteGroupDtoValidator : Validator<DeleteGroupDto>
|
|
{
|
|
public DeleteGroupDtoValidator()
|
|
{
|
|
RuleFor(x => x.Id)
|
|
.NotEmpty()
|
|
.WithMessage("Id is required");
|
|
}
|
|
} |