diff --git a/templates/Template.DatasyncServer/Program.cs b/templates/Template.DatasyncServer/Program.cs index f27944c..8c431a9 100644 --- a/templates/Template.DatasyncServer/Program.cs +++ b/templates/Template.DatasyncServer/Program.cs @@ -6,7 +6,8 @@ var connectionString = builder.Configuration.GetConnectionString("DefaultConnection"); builder.Services.AddDbContext(options => options.UseSqlServer(connectionString)); -builder.Services.AddDatasyncControllers(); +builder.Services.AddDatasyncServices(); +builder.Services.AddControllers(); var app = builder.Build(); @@ -19,4 +20,4 @@ // Configure and run the web service. app.MapControllers(); -app.Run(); \ No newline at end of file +app.Run();