public async Task <IActionResult> Archive([FromServices] IBlogArchiveService blogArchiveService) { var archives = await blogArchiveService.ListAsync(); return(View(archives)); }
public async Task <IActionResult> Archive() { var archives = await _blogArchiveService.ListAsync(); return(View(archives)); }