Created
February 5, 2014 01:27
-
-
Save leethomascook/8815874 to your computer and use it in GitHub Desktop.
Glass umbraco in controller
This file contains 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
UmbracoService service = new UmbracoService(ApplicationContext.Services.ContentService, Context.Default); | |
service.GetItem<HomePage>(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(will need to work out how to inject that stuff though)