Created
July 2, 2018 19:52
-
-
Save csharpforevermore/fec411ccd7dc141659924202c55ce413 to your computer and use it in GitHub Desktop.
Get a Media item by GUID / ID from a controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMedia content = UmbracoContext.Current.Application.Services.MediaService.GetById(Guid.Parse("bc6de686-25fa-49fa-a46b-a2a19c70bd8b")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment