15 lines
420 B
C#
15 lines
420 B
C#
using FluentValidation;
|
|
using Microsoft.Extensions.Localization;
|
|
|
|
namespace cuqmbr.TravelGuide.Application.Identity.Accounts.Queries.GetAccount;
|
|
|
|
public class GetAccountQueryValidator : AbstractValidator<GetAccountQuery>
|
|
{
|
|
public GetAccountQueryValidator(IStringLocalizer localizer)
|
|
{
|
|
RuleFor(v => v.Guid)
|
|
.NotEmpty()
|
|
.WithMessage(localizer["FluentValidation.NotEmpty"]);
|
|
}
|
|
}
|