34 lines
808 B
C#
34 lines
808 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Nop.Web.Factories;
|
|
using Nop.Web.Framework.Components;
|
|
|
|
namespace Nop.Web.Components;
|
|
|
|
public partial class ExternalMethodsViewComponent : NopViewComponent
|
|
{
|
|
#region Fields
|
|
|
|
protected readonly IExternalAuthenticationModelFactory _externalAuthenticationModelFactory;
|
|
|
|
#endregion
|
|
|
|
#region Ctor
|
|
|
|
public ExternalMethodsViewComponent(IExternalAuthenticationModelFactory externalAuthenticationModelFactory)
|
|
{
|
|
_externalAuthenticationModelFactory = externalAuthenticationModelFactory;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public async Task<IViewComponentResult> InvokeAsync()
|
|
{
|
|
var model = await _externalAuthenticationModelFactory.PrepareExternalMethodsModelAsync();
|
|
|
|
return View(model);
|
|
}
|
|
|
|
#endregion
|
|
} |