File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
13/umbraco-cms/fundamentals/code
14/umbraco-cms/fundamentals/code Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,11 @@ 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+
146+ builder .Services .AddScoped <ICustomNewsArticleService , CustomNewsArticleService >();
148147
149- return builder ;
150- }
148+ return builder ;
149+
151150 }
152151}
153152```
Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments