Try your search with a different keyword or use * as a wildcard.
using FluentValidation;
using Nop.Services.Localization;
using Nop.Web.Framework.Validators;
using Nop.Web.Models.PrivateMessages;
namespace Nop.Web.Validators.PrivateMessages;
public partial class SendPrivateMessageValidator : BaseNopValidator
{
public SendPrivateMessageValidator(ILocalizationService localizationService)
{
RuleFor(x => x.Subject).NotEmpty().WithMessageAwait(localizationService.GetResourceAsync("PrivateMessages.SubjectCannotBeEmpty"));
RuleFor(x => x.Message).NotEmpty().WithMessageAwait(localizationService.GetResourceAsync("PrivateMessages.MessageCannotBeEmpty"));
}
}