コード例 #1
0
        public List <Newsletter> get_by_search(string keywords  = "", Int32 pageSize   = 0, Int32 pageNumber = 0,
                                               string sortField = "", string sortOrder = "")
        {
            // Create the string array
            string[] wordArray = new string[] { "" };

            // Recreate the array if keywords is different from null
            if (keywords != null)
            {
                wordArray = keywords.Split(' ');
            }

            // Create the list to return
            List <Newsletter> posts = Newsletter.GetBySearch(wordArray, pageSize, pageNumber, sortField, sortOrder);

            // Return the list
            return(posts);
        } // End of the get_by_search method