15 lines
335 B
C#
15 lines
335 B
C#
using BookHive.Endpoints.Loans;
|
|
using FastEndpoints;
|
|
using FluentValidation;
|
|
|
|
namespace BookHive.Validators.Loans;
|
|
|
|
public class PatchLoanDtoValidator : Validator<PatchReturnLoanRequest>
|
|
{
|
|
public PatchLoanDtoValidator()
|
|
{
|
|
RuleFor(x => x.Id)
|
|
.GreaterThan(0)
|
|
.WithMessage("Id is invalid");
|
|
}
|
|
} |