using FluentValidation; namespace GroupService.WebApi.Controllers.Group { public class GroupUpdateRequest { public Guid GroupId { get; set; } public string? GroupName { get; set; } public string? Avatar { get; set; } public string? Description { get; set; } } public class GroupUpDateRequestValidator : AbstractValidator { public GroupUpDateRequestValidator() { RuleFor(r => r.GroupId) .NotNull() .NotEmpty(); } } }