public async Task <IActionResult> Add() { ResponseResult <PageList <ShowArticleTypeDto> > responseResult = await _httpClient.GetMapperDataAsync <ResponseResult <PageList <ShowArticleTypeDto> > >(_staticConfig.GenerateGetArticleTypeApiUrl()); if (responseResult.Code == 1) { ViewData["ArticleTypeList"] = responseResult.Data.Items.ToList(); } else { ViewData["ArticleTypeList"] = new List <ShowArticleTypeDto>(); } return(View()); }