コード例 #1
0
        public async static Task RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "SendGridEventWebhook.Controllers" }
                );

            // Create stored procedure on DocumentDb
            DocumentDb ddb = DocumentDb.GetInstance();
            await ddb.Init();
        }