Webiant Logo Webiant Logo
  1. No results found.

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

CheckoutProgressViewComponent.cs

using Microsoft.AspNetCore.Mvc;
using Nop.Web.Factories;
using Nop.Web.Framework.Components;
using Nop.Web.Models.Checkout;

namespace Nop.Web.Components;

public partial class CheckoutProgressViewComponent : NopViewComponent
{
    protected readonly ICheckoutModelFactory _checkoutModelFactory;

    public CheckoutProgressViewComponent(ICheckoutModelFactory checkoutModelFactory)
    {
        _checkoutModelFactory = checkoutModelFactory;
    }

    public async Task InvokeAsync(CheckoutProgressStep step)
    {
        var model = await _checkoutModelFactory.PrepareCheckoutProgressModelAsync(step);
        return View(model);
    }
}