Pass the data to the view through ViewData . public ActionResult Index() { ViewData["products"] = GetProducts(); return View(new ProductViewModel ...
確定! 回上一頁