I am using MVC 3 Razor and have a ViewModel that itself is a list of objects, say List<Photo>.
How do I declare this at the top of the view? I.e. what does PhotosModel look like?
@model Site.Areas.Account.Models.PhotosModel
By the way, I know I can nest the list within a ViewModel, but it is the only property, so I would rather not do that.
Is this possibly the solution?
public class PhotosModel : List<Photos>
{
}