Rename endpoint methods to different names instead of overloading

This commit is contained in:
Stedoss 2022-10-30 15:18:51 +00:00
parent 115623ec4d
commit 51387e770e

View File

@ -18,14 +18,14 @@ public class VenueController : ControllerBase
}
[HttpGet]
public async Task<IActionResult> Get()
public async Task<IActionResult> GetAll()
{
var venues = await _venueService.GetAllVenues();
return Ok(venues);
}
[HttpGet("{venueId:int}")]
public async Task<IActionResult> Get(int venueId)
public async Task<IActionResult> GetVenue(int venueId)
{
if (venueId < 1)
{