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"; }