摘要:
添加Areas主要目的是区分一些不同的业务,避免不同的业务都在同一个Controllers下造成混乱,在MVC项目上右键->添加区域->我添加了HMbolie和PClient两个区域->如下图 HMbolieAreaRegistration.cs和PClientAreaRegistration.cs 阅读全文
摘要:
throw new System.ServiceModel.Web.WebFaultException("\"mes\":\"认证信息失效\"", System.Net.HttpStatusCode.Unauthorized);需要引用System.ServiceModel.Web.dll 阅读全文