public async Task <ActionResult> Details(int id) { var product = await _productService.GetProductById(id); //1:查询对应的图片信息 var fileData = await _fileAppService.GetFilesById(id); //2:吵着 var model = new ProductViewModel() { Id = product.Id, ItemNo = product.ItemNo, Describe = product.Describe, Name = product.Name, Price = product.Price, CategoryId = product.CategoryId, ImgPic = product.ImgPic, Files = fileData, LinkAddr = product.LinkAddr }; return(await Task.FromResult(View(model))); }