HttpPost

Sep 3, 2012 at 6:51 AM

Hi~

I got an action which is looks like this:

[HttpPost]
public HttpStatusCodeResult Add(WebeditUser user)

I cannot got user object now which seems model binder is not working

And when I change it to:

[HttpPost]
public HttpStatusCodeResult Add([FromRoute]WebeditUser user)

I got "The HTTP verb POST used to access path"

Any ideas about this?

btw, have been dig this for a while, but is seems all code I found from internet are not using HttpPost, and all action parameters are basic type (such as string, int), is there any restrictions for this?

thanks~

Sep 3, 2012 at 11:38 AM

problem solved, my fault, sorry~