private void InitializeActionsList(IApiExplorer apiExplorer)
        {
            Collection <ApiDescription> descriptions = apiExplorer.ApiDescriptions;
            var actions = new ApiActionMetadata[descriptions.Count];

            for (int index = 0; index < descriptions.Count; index++)
            {
                ApiDescription description    = descriptions[index];
                string         controllerName = description.ActionDescriptor.ControllerDescriptor.ControllerName;
                string         actionName     = description.ActionDescriptor.ActionName;

                string            name     = char.ToLower(controllerName[0]) + controllerName.Substring(1) + actionName;
                ApiActionMetadata metadata = new ApiActionMetadata(name,
                                                                   description.RelativePath,
                                                                   description.HttpMethod.Method,
                                                                   description.Documentation,
                                                                   description.ParameterDescriptions);
                actions[index] = metadata;
            }

            Actions = actions;
        }
        private void InitializeActionsList(IApiExplorer apiExplorer)
        {
            Collection<ApiDescription> descriptions = apiExplorer.ApiDescriptions;
            var actions = new ApiActionMetadata[descriptions.Count];

            for (int index = 0; index < descriptions.Count; index++)
            {
                ApiDescription description = descriptions[index];
                string controllerName = description.ActionDescriptor.ControllerDescriptor.ControllerName;
                string actionName = description.ActionDescriptor.ActionName;

                string name = char.ToLower(controllerName[0]) + controllerName.Substring(1) + actionName;
                ApiActionMetadata metadata = new ApiActionMetadata(name,
                                                                   description.RelativePath,
                                                                   description.HttpMethod.Method,
                                                                   description.Documentation,
                                                                   description.ParameterDescriptions);
                actions[index] = metadata;
            }

            Actions = actions;
        }