コード例 #1
0
        public async Task <IActionResult> Update(int id)
        {
            var blogList = await _blogApiService.GetByIdAsync(id);

            return(View(new ArticleUpdateModel {
                ArticleId = blogList.ArticleId,
                Title = blogList.Title,
                Description = blogList.Description,
                ShortDescription = blogList.ShortDescription
            }));
        }
コード例 #2
0
 public async Task <IActionResult> BlogDetail(int id)
 {
     return(View(await _articleApiService.GetByIdAsync(id)));
 }