minato128 blog

minato128の公開メモ帳です。

ASP.NET Web API

ASP.NET Web API の属性ルーティングと例外ロギング設定

属性ルーティング Create a REST API with Attribute Routing in Web API 2 Global.asax.cs public class Global : HttpApplication { protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); } } WebApiConfig.cs pu…