Rename endpoint methods to different names instead of overloading
This commit is contained in:
parent
115623ec4d
commit
51387e770e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user