/// <summary>
        /// This method is used to return components that are stored within a specific folder matching a specific search criteria.
        /// </summary>
        /// <param name="client">Contains the <see cref="InspireClient"/> that is used for communication.</param>
        /// <param name="folderId">Contains the folder identity to retrieve components from, pass a value of zero to retrieve all components.</param>
        /// <param name="inputModel">Contains the <see cref="FolderComponentsQueryModel"/> input.</param>
        /// <returns>Returns a <see cref="FolderComponentsResultModel"/> object if found.</returns>
        public static FolderComponentsResultModel FindComponentsByFolderId(this InspireClient client, long folderId, FolderComponentsQueryModel inputModel)
        {
            if (folderId < 0)
            {
                throw new ArgumentNullException(nameof(folderId));
            }

            var request = client.CreateRequest($"/Folders/{folderId}/Components", HttpMethod.Post);

            return(client.RequestContent <FolderComponentsQueryModel, FolderComponentsResultModel>(request, inputModel));
        }
 public static FolderComponentsResultModel GetComponentsByFolderId(this InspireClient client, long folderId, FolderComponentsQueryModel inputModel)
 {
     return(FindComponentsByFolderId(client, folderId, inputModel));
 }