From 51387e770ee8bba02362bc29be1467b4e9b0bf5e Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Sun, 30 Oct 2022 15:18:51 +0000 Subject: [PATCH] Rename endpoint methods to different names instead of overloading --- .../LeedsBeerQuest.API/Controllers/VenueController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/VenueController.cs b/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/VenueController.cs index 216a117..05c1aab 100644 --- a/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/VenueController.cs +++ b/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/VenueController.cs @@ -18,14 +18,14 @@ public class VenueController : ControllerBase } [HttpGet] - public async Task Get() + public async Task GetAll() { var venues = await _venueService.GetAllVenues(); return Ok(venues); } [HttpGet("{venueId:int}")] - public async Task Get(int venueId) + public async Task GetVenue(int venueId) { if (venueId < 1) {