Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

PluginValidator.cs

using FluentValidation;
using Nop.Services.Localization;
using Nop.Web.Areas.Admin.Models.Plugins;
using Nop.Web.Framework.Validators;

namespace Nop.Web.Areas.Admin.Validators.Plugins;

public partial class PluginValidator : BaseNopValidator
{
    public PluginValidator(ILocalizationService localizationService)
    {
        RuleFor(x => x.FriendlyName).NotEmpty().WithMessageAwait(localizationService.GetResourceAsync("Admin.Configuration.Plugins.Fields.FriendlyName.Required"));
    }
}