IW4M-Admin/WebfrontCore/ViewComponents/ProfileMetaListViewComponent.cs
RaidMax 7b8126d57e continue rework of profile
start moving profile info out of javascript into componentview
rework meta data to include count and offset
2019-03-27 19:40:26 -05:00

16 lines
455 B
C#

using Microsoft.AspNetCore.Mvc;
using SharedLibraryCore.Services;
using System.Threading.Tasks;
namespace WebfrontCore.ViewComponents
{
public class ProfileMetaListViewComponent : ViewComponent
{
public async Task<IViewComponentResult> InvokeAsync(int clientId, int count, int offset)
{
var meta = await MetaService.GetRuntimeMeta(clientId, offset, count);
return View("_List", meta);
}
}
}