I'm new to Umbraco version 5 and Razor, but I'm trying to get the path for a media file stored as a property of the current page so that I can render it as an image.
Searching Google and Stack Overflow have got me this far:
@{
var mediaId = DynamicModel.Animation;
var media = (TypedEntity)Umbraco.GetEntityById(mediaId);
}
where 'Animation' is the name of the media property in my page.
How can I get to the image path of my media item?