Click here to Skip to main content
15,885,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have multiple WebApi controllers in my project all other controller is working fine except one for which the Post and Put method receive the input model param as null always.

Below is the code snippet-

C#
// POST api/Post
public HttpResponseMessage PostPostRepository(PostRepository postrepository)
{
  ....


}


Is this because of the model name that I used ?
Any pointers to this will be appreciable.

Thanks
Posted
Updated 15-Feb-15 5:44am
v2
Comments
Richard MacCutchan 15-Feb-15 12:07pm    
You need to show the actual code, not just the first line, and show where the error occurs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900