62,046
社区成员
发帖
与我相关
我的任务
分享
public ViewResult Index()
{
IList<Products> modelList = db.Product.ToList();
if (modelList != null && modelList.Count > 0)
{
return View(db.Product.ToList());
}
else
{
return View(modelList);//这里如何跳转到别的html页面或是别的控制器中
}
}