public ActionResult Index1(int id)
{
var yuantu = db.picture.Where(b => b.id == id).FirstOrDefault();
ViewBag.name = yuantu.name;
ViewBag.time = yuantu.time;
ViewBag.lie = yuantu.lei;
ViewBag.URL = yuantu.Purl;
return View();
}
这个只能读取一个 想做一个不是查id 而是搜索相同名字的都列出来