Exemplo n.º 1
0
        public List <InspirationImageMap> get_all(string sortField = "", string sortOrder = "")
        {
            // Get a list of image maps
            List <InspirationImageMap> posts = InspirationImageMap.GetAll(sortField, sortOrder);

            // Return the list
            return(posts);
        } // End of the get_all method
Exemplo n.º 2
0
        public Dictionary <Int32, string> get_all_images()
        {
            // Create the dictionary to return
            Dictionary <Int32, string> imageUrls = new Dictionary <Int32, string>();

            // Get all the image maps
            List <InspirationImageMap> posts = InspirationImageMap.GetAll("id", "ASC");

            // Loop all the posts
            for (int i = 0; i < posts.Count; i++)
            {
                // Add the url to the list
                imageUrls.Add(posts[i].id, Tools.GetInspirationImageUrl(posts[i].id, posts[i].image_name));
            }

            // Return the dictionary
            return(imageUrls);
        } // End of the get_all_images method