API
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 moreHow i will pass parameter & set it’s type in API?
Here i set id which type int and passed the int type id in GetVilla function.
Read moreError “System.Invalid OperationException has been thrown”
For solving this issue write outside of your class [Route(“api/VillaAPI”)]
Read more