Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class BlogSeedKeyProvider : IDocumentSeedKeyProvider
}
```

Next we'll inject the `IDocumentNavigationQueryService` in order to get the children of the blog node.
2. Inject the `IDocumentNavigationQueryService` to get the children of the blog node.

```csharp
using Umbraco.Cms.Core.Services.Navigation;
Expand Down Expand Up @@ -66,6 +66,7 @@ public ISet<Guid> GetSeedKeys()
return new HashSet<Guid>();
}
```

Since this returns it as a set, and all the sets get unioned, we do not have to worry about duplicates.

The final class looks like this:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ You can use dictionary items to translate the values of a Radiobutton List prope

#### Without Models Builder

{% code caption="HomePageTemplate.cs" %}

```csharp
@if (Model.HasValue("colorTheme"))
{
Expand All @@ -34,6 +36,8 @@ You can use dictionary items to translate the values of a Radiobutton List prope
}
```

{% endcode %}

#### With Models Builder

```csharp
Expand Down
2 changes: 1 addition & 1 deletion 16/umbraco-cms/reference/using-ioc.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ If you need to inject your service into a controller or another service, you wil

{% code title="FooController.cs" %}

```csharp
```none
using IOCDocs.Services;
using Microsoft.AspNetCore.Mvc;

Expand Down