Using Umbraco's service APIs

Whenever you need to modify an entity that Umbraco stores in the database, there is a service API available to help you. This means that you can create, update and delete any of the core Umbraco entities directly from your custom code.

Accessing the Umbraco services

To use the service APIs you must first access them. This is done through what is known as the ApplicationContext which provides access to everything related to the Umbraco application.

Access via Controller

If you are accessing Umbraco services inside your own controller class, you get access to all services through Services by inheriting from one of Umbraco's base controller classes:

More information

Umbraco TV

Our.umbraco.com is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.
This site is running
Umbraco version 7.13.1