.Net webapi - when your request model is null - trouble shooting guide



lets say your have this as your Controller method, accepting POST request



When dealing with large request object, you can never be sure where you might have issue.

In this case, I have an issue converting an empty string to int. Yes, it is very important to have Request model to have int? as the default binding variables.

But anyways, working as a team you will never know what really happens. The request always null.





Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

A quick tutorial for OWASP ZAP tool for beginners

OpenCover code coverage for .Net Core