2019-03-27 20:40:26 -04:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using SharedLibraryCore.Services;
|
2019-03-29 22:56:56 -04:00
|
|
|
|
using System;
|
2019-03-27 20:40:26 -04:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace WebfrontCore.ViewComponents
|
|
|
|
|
{
|
|
|
|
|
public class ProfileMetaListViewComponent : ViewComponent
|
|
|
|
|
{
|
2019-03-29 22:56:56 -04:00
|
|
|
|
public async Task<IViewComponentResult> InvokeAsync(int clientId, int count, int offset, DateTime? startAt)
|
2019-03-27 20:40:26 -04:00
|
|
|
|
{
|
2019-03-29 22:56:56 -04:00
|
|
|
|
var meta = await MetaService.GetRuntimeMeta(clientId, offset, count, startAt ?? DateTime.UtcNow);
|
2019-03-27 20:40:26 -04:00
|
|
|
|
return View("_List", meta);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|