Webiant Logo Webiant Logo
  1. No results found.

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

CustomerAddressValidator.cs

using FluentValidation;
using Nop.Core.Domain.Common;
using Nop.Services.Localization;
using Nop.Web.Areas.Admin.Models.Customers;
using Nop.Web.Areas.Admin.Validators.Common;

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

public partial class CustomerAddressValidator : AbstractValidator
{
    public CustomerAddressValidator(ILocalizationService localizationService,
        AddressSettings addressSettings)
    {
        RuleFor(model => model.Address).SetValidator(new AddressValidator(addressSettings, localizationService));
    }
}