public async Task <IViewComponentResult> InvokeAsync(Widget widget) { var blogArchivesWidget = (BlogArchivesWidget)widget; var years = await _statsSvc.GetArchivesAsync(); return(View("~/Components/BlogArchives.cshtml", new Tuple <Dictionary <int, List <MonthItem> >, BlogArchivesWidget>(years, blogArchivesWidget))); }
public async Task <IViewComponentResult> InvokeAsync(Widget widget) { var blogArchivesWidget = (BlogArchivesWidget)widget; var years = await _statsSvc.GetArchivesAsync(); return(View(WidgetService.GetWidgetViewPath("BlogArchives"), new Tuple <Dictionary <int, List <MonthItem> >, BlogArchivesWidget>(years, blogArchivesWidget))); }
public async Task <IViewComponentResult> InvokeAsync() { var years = await _statsSvc.GetArchivesAsync(); return(View(years)); }