public override ActionResult ApplyVendor() { if (!_vendorSettings.AllowCustomersToApplyForVendorAccount) { return(RedirectToRoute("HomePage")); } var model = new OneStepApplyVendorModel().ToApplyVendorModel(); model = _vendorModelFactory.PrepareApplyVendorModel(model, true, false); return(ViewApplyVendor(model)); }
public virtual IActionResult ApplyVendor() { if (!_vendorSettings.AllowCustomersToApplyForVendorAccount) { return(RedirectToRoute("HomePage")); } if (!_workContext.CurrentCustomer.IsRegistered()) { return(Challenge()); } var model = new ApplyVendorModel(); model = _vendorModelFactory.PrepareApplyVendorModel(model, true, false, null); return(View(model)); }