diff --git a/apps/releaf/backend/Releaf.Api/Controllers/TreesController.cs b/apps/releaf/backend/Releaf.Api/Controllers/TreesController.cs index 8b276af..a773ecc 100644 --- a/apps/releaf/backend/Releaf.Api/Controllers/TreesController.cs +++ b/apps/releaf/backend/Releaf.Api/Controllers/TreesController.cs @@ -18,10 +18,9 @@ public TreesController(ILogger logger, ITreeRepo treeRepo) } [HttpGet] - public IDictionary GetAll(int page, int size) + public IEnumerable GetAll(int page, int size) { - IEnumerable trees = treeRepo.GetAll(page, size); - return trees.ToDictionary(t => t.Id.Value, t => t.Name); + return treeRepo.GetAll(page, size); } [HttpGet("{id}")]