1、1自定义view显示,
IView iv = new RazorView(ControllerContext, "/Views/InfoModel/ViewPage1.cshtml", "", true, new List<string>{"cshtml","aspx"});
return View(iv, DAL.GetByID(id));
1、1自定义view显示,
IView iv = new RazorView(ControllerContext, "/Views/InfoModel/ViewPage1.cshtml", "", true, new List<string>{"cshtml","aspx"});
return View(iv, DAL.GetByID(id));