dotNet
How i will return status code & message depend on condition in API?
Here when user try to get data entering id. If user enter id zero(0) then it’s called BadRequest which return
Read moreError “System.Invalid OperationException has been thrown”
For solving this issue write outside of your class [Route(“api/VillaAPI”)]
Read more