摘要: 1.全局处理处理代码 1 publict static void SetSerializationJsonFormat(HttpConfiguration config) 2 { 3 // Web API configuration and services... 阅读全文
posted @ 2015-06-12 16:51 刘小吉 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 概述:之前MVC5和之前的版本中,我们要想对View文件的路径进行控制的话,则必须要对IViewEngine接口的FindPartialView或FindView方法进行重写,所有的视图引擎都继承于该IViewEngine接口,比如默认的RazorViewEngine。但新版本MVC6中,对视图文件... 阅读全文
posted @ 2015-06-12 16:29 刘小吉 阅读(1723) 评论(0) 推荐(1) 编辑