Skip to content

Commit 8c6f6f0

Browse files
committed
return dto at plot post route
1 parent 7919b41 commit 8c6f6f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PlotSystem-API/Controllers/PlotController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class PlotController(IPlotRepository repository) : ControllerBase
1111
// POST: api/plot
1212
[HttpPost]
1313
[ProducesResponseType(StatusCodes.Status201Created)]
14-
public ActionResult<int> CreatePlot(
14+
public ActionResult<PlotDto> CreatePlot(
1515
[FromForm] string cityProjectId,
1616
[FromForm] string difficultyId,
1717
[FromForm] string outlineBounds,
@@ -31,7 +31,7 @@ public ActionResult<int> CreatePlot(
3131
outlineBounds,
3232
createdBy,
3333
initialSchematicBytes
34-
).Id);
34+
));
3535
}
3636

3737
// GET: api/plot/toPaste

0 commit comments

Comments
 (0)