Skip to content

Commit b0bf612

Browse files
authored
Update umbraco-services.md
Fix code error in example of IUmbracoBuilder
1 parent a56ed45 commit b0bf612

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

15/umbraco-cms/fundamentals/code/umbraco-services.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,9 @@ public static class UmbracoBuilderServiceExtensions
142142
{
143143
public static IUmbracoBuilder AddCustomServices(this IUmbracoBuilder builder)
144144
{
145-
public static IUmbracoBuilder AddCustomServices(this IUmbracoBuilder builder)
146-
{
147-
builder.Services.AddScoped<ICustomNewsArticleService, CustomNewsArticleService>();
145+
builder.Services.AddScoped<ICustomNewsArticleService, CustomNewsArticleService>();
148146

149-
return builder;
150-
}
147+
return builder;
151148
}
152149
}
153150
```

0 commit comments

Comments
 (0)