Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Business.Core.Interfaces.Common.Addresses;
using Grand.Business.Core.Interfaces.Common.Directory;
using Grand.Business.Core.Interfaces.Common.Localization;
using Grand.Domain.Common;
using Grand.Infrastructure;
using Grand.Infrastructure.Validators;
using Grand.Web.Models.Checkout;
using Grand.Web.Models.Common;
using Grand.Web.Validators.Common;
using Grand.Mediator;
namespace Grand.Web.Validators.Customer;
public class CheckoutBillingAddressValidator : BaseGrandValidator<CheckoutBillingAddressModel>
{
public CheckoutBillingAddressValidator(
IEnumerable<IValidatorConsumer<CheckoutBillingAddressModel>> validators,
IEnumerable<IValidatorConsumer<AddressModel>> addressValidators,
IMediator mediator, IAddressAttributeParser addressAttributeParser,
ITranslationService translationService,
ICountryService countryService,
AddressSettings addressSettings,
IContextAccessor contextAccessor)
: base(validators)
{
RuleFor(x => x.BillingNewAddress).SetValidator(new AddressValidator(addressValidators, mediator,
addressAttributeParser, translationService, countryService, addressSettings, contextAccessor));
}
}