摘要:
默认mvc json序列化 机制处理日期等字段时 格式并不是我们想要的格式我们可以使用json.net 覆盖mvc默认的序列化行为 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 using System.Web; 8 using System.Web.Mvc; 9 using Newtonsoft.Json;10 11 namespace Ecomm 阅读全文
posted @ 2014-03-24 14:15
house11
阅读(694)
评论(0)
推荐(0)
摘要:
MvcModelBinderView Codewebapi ModelBinder 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.Http.Controllers; 6 using System.Web.Http.ModelBinding; 7 using Newtonsoft.Json; 8 using Newtonsoft.Json.Linq; 9 using System.Net;10 namespace Eco 阅读全文
posted @ 2014-03-24 13:56
house11
阅读(436)
评论(0)
推荐(0)
摘要:
1 public static void AppErrorSet(HttpContext context, Controller errorController) 2 { 3 var httpContext = context; 4 var currentController = " "; 5 var currentAction = " "; 6 var currentRouteData = RouteTable.Routes.GetRouteData(new HttpContex... 阅读全文
posted @ 2014-03-24 13:33
house11
阅读(448)
评论(0)
推荐(0)
浙公网安备 33010602011771号