public ActionResult ConsultGoods(int id) { var good = ca.ConsultGoods(id); List <GoodsModels> fVM = new List <GoodsModels>(); foreach (var item in good) { fVM.Add( new GoodsModels { id_goods = item.id_goods, brand = item.brand, description = item.description, date = item.date, label = item.label, quantity = item.quantity, subCategoryID = item.subCategoryID, swapperID = item.swapperID, subCategory = item.subCategory, image = item.image }); } return(View(fVM)); }