From 5da1e2fd750634aeae856a674cb5805167cd6e26 Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Tue, 24 Jun 2025 19:35:29 +0200 Subject: [PATCH] Make endpoint methods private which were not before --- src/Vegasco.Server.Api/Cars/CreateCar.cs | 2 +- src/Vegasco.Server.Api/Cars/DeleteCar.cs | 2 +- src/Vegasco.Server.Api/Cars/UpdateCar.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Vegasco.Server.Api/Cars/CreateCar.cs b/src/Vegasco.Server.Api/Cars/CreateCar.cs index 8f7ef96..aac0d7b 100644 --- a/src/Vegasco.Server.Api/Cars/CreateCar.cs +++ b/src/Vegasco.Server.Api/Cars/CreateCar.cs @@ -34,7 +34,7 @@ public static class CreateCar } } - public static async Task Endpoint( + private static async Task Endpoint( Request request, IEnumerable> validators, ApplicationDbContext dbContext, diff --git a/src/Vegasco.Server.Api/Cars/DeleteCar.cs b/src/Vegasco.Server.Api/Cars/DeleteCar.cs index 853c665..3dd1f26 100644 --- a/src/Vegasco.Server.Api/Cars/DeleteCar.cs +++ b/src/Vegasco.Server.Api/Cars/DeleteCar.cs @@ -15,7 +15,7 @@ public static class DeleteCar .Produces(404); } - public static async Task Endpoint( + private static async Task Endpoint( Guid id, ApplicationDbContext dbContext, ILoggerFactory loggerFactory, diff --git a/src/Vegasco.Server.Api/Cars/UpdateCar.cs b/src/Vegasco.Server.Api/Cars/UpdateCar.cs index ff97f20..e857eb9 100644 --- a/src/Vegasco.Server.Api/Cars/UpdateCar.cs +++ b/src/Vegasco.Server.Api/Cars/UpdateCar.cs @@ -34,7 +34,7 @@ public static class UpdateCar } } - public static async Task Endpoint( + private static async Task Endpoint( Guid id, Request request, IEnumerable> validators,