Skip to content

Instantly share code, notes, and snippets.

@leethomascook
Created February 5, 2014 01:27
Show Gist options
  • Save leethomascook/8815874 to your computer and use it in GitHub Desktop.
Save leethomascook/8815874 to your computer and use it in GitHub Desktop.
Glass umbraco in controller
UmbracoService service = new UmbracoService(ApplicationContext.Services.ContentService, Context.Default);
service.GetItem<HomePage>(1);
@leethomascook
Copy link
Author

(will need to work out how to inject that stuff though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment