13 lines
351 B
C#
13 lines
351 B
C#
using FluentValidation;
|
|
|
|
namespace TeleWave.Application.Programming.Groups.CreateGroup;
|
|
|
|
public sealed class CreateGroupCommandValidator : AbstractValidator<CreateGroupCommand>
|
|
{
|
|
public CreateGroupCommandValidator()
|
|
{
|
|
RuleFor(x => x.Name).NotEmpty().MaximumLength(256);
|
|
RuleFor(x => x.Description).MaximumLength(2048);
|
|
}
|
|
}
|