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 })); }
public async Task <IActionResult> BlogDetail(int id) { return(View(await _articleApiService.GetByIdAsync(id))); }