diff --git a/Demo/Startup.cs b/Demo/Startup.cs index 2bdcd63..2753298 100644 --- a/Demo/Startup.cs +++ b/Demo/Startup.cs @@ -38,8 +38,8 @@ namespace Demo services.AddPoweredSoftCQRS(); services .AddControllers() - .AddPoweredSoftQueryController() - .AddPoweredSoftCommandController() + .AddPoweredSoftQueries() + .AddPoweredSoftCommands() .AddFluentValidation(); services.AddSwaggerGen(); diff --git a/PoweredSoft.CQRS.AspNetCore/MvcBuilderExensions.cs b/PoweredSoft.CQRS.AspNetCore/MvcBuilderExensions.cs index 2ab3c21..64bb065 100644 --- a/PoweredSoft.CQRS.AspNetCore/MvcBuilderExensions.cs +++ b/PoweredSoft.CQRS.AspNetCore/MvcBuilderExensions.cs @@ -6,7 +6,7 @@ namespace PoweredSoft.CQRS.AspNetCore.Mvc { public static class MvcBuilderExtensions { - public static IMvcBuilder AddPoweredSoftQueryController(this IMvcBuilder builder, Action configuration = null) + public static IMvcBuilder AddPoweredSoftQueries(this IMvcBuilder builder, Action configuration = null) { var options = new QueryControllerOptions(); configuration?.Invoke(options); @@ -17,7 +17,7 @@ namespace PoweredSoft.CQRS.AspNetCore.Mvc return builder; } - public static IMvcBuilder AddPoweredSoftCommandController(this IMvcBuilder builder) + public static IMvcBuilder AddPoweredSoftCommands(this IMvcBuilder builder) { var services = builder.Services; var serviceProvider = services.BuildServiceProvider();