HttpPost

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Commented on

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~

Commented on link

problem solved, my fault, sorry~