c# mvc5 view 多层_.net mvc5 不同view()的视图 代码
public class Test{public int id { set; get; }public string name { set; get; }}public ActionResult Index(){Test ts = new Test();ts.id = 2;ts.name = "wangjin";ViewBag.name = ts;return View();}如果不传递试图对象 ...