17 lines
559 B
C#
17 lines
559 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Nop.Plugin.Misc.FruitBankPlugin.Areas.Admin.Models;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin.Areas.Admin.Components
|
|
{
|
|
[ViewComponent(Name = "ShippingGridComponent")]
|
|
public class ShippingGridComponent : ViewComponent
|
|
{
|
|
public async Task<IViewComponentResult> InvokeAsync(TestGridModel model)
|
|
{
|
|
// Here you can fetch data for this grid if needed
|
|
// For demo, just pass the model
|
|
return View(model.ViewComponentName +".cshtml", model);
|
|
}
|
|
}
|
|
}
|