I need a way to check whether the wallpaper has been favorited in order to know which image to show, a black star, or a yellow star when the user hovers over the image. The easiest way I could think of was using a Dictionary, with the id of the image serving as the key, and a bool representing the favorite status as the value. However, since the id of the image is set as the title, I don't know how in the world I would go about getting the correct value.
Here's a reference to what I'm working on.
How to format a URL.Action() call in JQuery to set a link's href attribute?
I think each image already has most of its attributes filled with information. The class is used for css, the id is used for figuring out selection status, the title has its id from the database.