✅ No route matches the supplied value. when trying put request to /venture/{id}/portfolio

c#
// PUT: api/Venture/{id}/portfolio
[HttpPut("{id}/Portfolio")]
public async Task<ActionResult<Portfolio>> AddPortfolio(Guid id, [FromBody] Portfolio request)
{
// code
}
c#
// PUT: api/Venture/{id}/portfolio
[HttpPut("{id}/Portfolio")]
public async Task<ActionResult<Portfolio>> AddPortfolio(Guid id, [FromBody] Portfolio request)
{
// code
}
No description
1 Reply
restingphantom
restingphantomOP7mo ago
Oke, so this works, but as soon as I want to use the id for anything it doesnt see the route omg, I found it it was the CreatedAtAction I returned in the end of my method
Want results from more Discord servers?
Add your server