Skip to content

Commit

Permalink
fix: art event management controller
Browse files Browse the repository at this point in the history
  • Loading branch information
FranchescoSoto committed Nov 21, 2023
1 parent 107d1f6 commit 736cc7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task<IActionResult> getByArtist(int id) {
IEnumerable<ArtEvent> events= _artEventQueryService.getArtEventByArtistId(id);
return Ok(events);
}
[HttpPost("art-events/{id}/participant")]
[HttpPost("art-events/participant")]
public async Task<IActionResult> createParticipant([FromBody] RegisterParticipantToArtEventCommand registerParticipantToArtEvent) {
string response= await _artEventCommandService.registerParticipantToArtEvent(registerParticipantToArtEvent);
return Ok(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ParticipantsController(IMapper mapper, IParticipantQueryService participa
_participantCommandService=participantCommandService;
}

[HttpGet]
[HttpGet("participants")]
public async Task<IActionResult> getParticipants()
{
IEnumerable<Participant> participants = _participantQueryService.GetParticipants();
Expand Down

0 comments on commit 736cc7f

Please sign in to comment.