15 lines
392 B
C#
15 lines
392 B
C#
using FluentValidation;
|
|
using Microsoft.Extensions.Localization;
|
|
|
|
namespace cuqmbr.TravelGuide.Application.Buses.Queries.GetBus;
|
|
|
|
public class GetBusQueryValidator : AbstractValidator<GetBusQuery>
|
|
{
|
|
public GetBusQueryValidator(IStringLocalizer localizer)
|
|
{
|
|
RuleFor(v => v.Guid)
|
|
.NotEmpty()
|
|
.WithMessage(localizer["FluentValidation.NotEmpty"]);
|
|
}
|
|
}
|