Refactoring, database structure changed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace WatchIt.DTO.Models.Controllers.Genres.Genre;
|
||||
|
||||
public class GenreRequestValidator : AbstractValidator<GenreRequest>
|
||||
{
|
||||
#region CONSTRUCTORS
|
||||
|
||||
public GenreRequestValidator()
|
||||
{
|
||||
RuleFor(x => x.Name).MaximumLength(100);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user