Data Persistence (CRUD)
The Umbraco Services layer is used to query and manipulate Umbraco stored in the database.
All services are available using their interfaces in the dependency injection container. ASP.NET Core supports dependency injection in almost every scenario.
public class MyClass
private readonly IContentService _contentService;
public MyClass(IContentService contentService)
_contentService = contentService;
@inject IContentService ContentService
There is a service for each type of data in Umbraco.