Skip to content

Commit bcd0539

Browse files
committed
Use the correct schema for get regiom's territories
1 parent b765e01 commit bcd0539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NorthwindCRUD/Controllers/RegionsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public ActionResult<RegionDto> GetById(int id)
142142
}
143143

144144
[HttpGet("{id}/Territories")]
145-
public ActionResult<CustomerDto> GetTerritoryByRegionId(int id)
145+
public ActionResult<TerritoryDto[]> GetTerritoryByRegionId(int id)
146146
{
147147
try
148148
{

0 commit comments

Comments
 (0)