Esempio n. 1
0
        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            // Create a custom Invoker that handles non-actionresult controller methods
            ActionInvoker = new ApiActionInvoker();

            base.Initialize(requestContext);

            // pick up the format
            Format = (Request.QueryString["Format"] ?? string.Empty).ToLower();

            //if (string.IsNullOrEmpty(this.Format))
            //    this.Format = "xml";
        }
        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            // Create a custom Invoker that handles non-actionresult controller methods
            ActionInvoker = new ApiActionInvoker();

            base.Initialize(requestContext);

            // pick up the format
            Format = (Request.QueryString["Format"] ?? string.Empty).ToLower();

            //if (string.IsNullOrEmpty(this.Format))
            //    this.Format = "xml";
        }