コード例 #1
0
        public async Task <IActionResult> Archive([FromServices] IBlogArchiveService blogArchiveService)
        {
            var archives = await blogArchiveService.ListAsync();

            return(View(archives));
        }
コード例 #2
0
        public async Task <IActionResult> Archive()
        {
            var archives = await _blogArchiveService.ListAsync();

            return(View(archives));
        }