.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

The specified initialization vector (IV) does not match the block size for this algorithm