project reorganized

This commit is contained in:
2024-04-27 22:36:16 +02:00
Unverified
parent fcca2119a5
commit 4b333878b8
233 changed files with 4916 additions and 11471 deletions

View File

@@ -0,0 +1,14 @@
using FluentValidation;
using WatchIt.Common.Model.Genres;
using WatchIt.Database;
namespace WatchIt.WebAPI.Validators.Genres;
public class GenreRequestValidator : AbstractValidator<GenreRequest>
{
public GenreRequestValidator()
{
RuleFor(x => x.Name).MaximumLength(100);
When(x => !string.IsNullOrWhiteSpace(x.Description), () => RuleFor(x => x.Description).MaximumLength(1000));
}
}