# Data Persistence (CRUD)

*The Umbraco Services layer is used to query and manipulate Umbraco stored in the database*.

## Dependency injection

All services are available using their interfaces in the dependency injection container. ASP.NET Core supports dependency injection in almost every scenario.

### Constructors in classes

```csharp
    public class MyClass
    {
        private readonly IContentService _contentService;

        public MyClass(IContentService contentService)
        {
            _contentService = contentService;
        }
    }
```

### Constructors in views

```cshtml
    @inject IContentService ContentService
```

## Services

There is a service for each type of data in Umbraco.

[See here For a full list of services available](https://docs.umbraco.com/umbraco-cms/13.latest/reference/management/services)
