Try your search with a different keyword or use * as a wildcard.
using Microsoft.AspNetCore.Mvc;
using Nop.Web.Factories;
using Nop.Web.Framework.Components;
namespace Nop.Web.Components;
public partial class TopicBlockViewComponent : NopViewComponent
{
protected readonly ITopicModelFactory _topicModelFactory;
public TopicBlockViewComponent(ITopicModelFactory topicModelFactory)
{
_topicModelFactory = topicModelFactory;
}
public async Task InvokeAsync(string systemName)
{
var model = await _topicModelFactory.PrepareTopicModelBySystemNameAsync(systemName);
if (model == null)
return Content("");
return View(model);
}
}