use Model.Media("propertyName") when you have a property on your current model

use Library.MediaById when you have an ID number or that ID comes from querystring

see this forum post

http://our.umbraco.org/forum/developers/razor/27447-Why-is-there-no-simple-answer-to-this!!-Razor,-Parameter,-Media?p=0#comment103148

Posted by Tom at 00:00
Tags :
Categories :

Post a comment

Authors

Tags