summaryrefslogtreecommitdiff
path: root/Controllers/RafflesController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Controllers/RafflesController.cs')
-rw-r--r--Controllers/RafflesController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Controllers/RafflesController.cs b/Controllers/RafflesController.cs
index 0da75d5..9f50449 100644
--- a/Controllers/RafflesController.cs
+++ b/Controllers/RafflesController.cs
@@ -120,7 +120,7 @@ namespace BackendPIA.Controllers {
if(raffle == null)
return NotFound(new NotFoundError(404, $"The raffle with id {id} doesn't exist."));
- var prizes = _service.GetRaffleTickets(id);
+ var prizes = _service.GetRafflePrizes(id);
return Ok(_mapper.Map<IEnumerable<PrizeDTO>>(prizes));
}