The thing is, today, when we write a function module, the method is created, to the controller, dead or Alive is null.
Never before this situation ah, but the difference is that the code is a multi-layered jump in, is not the page jump too much, remember before the model, then try, changed the method name, the General page is create, but this, considering the possibility and the original repetition, the name of the word again try, Change to CREATESCP, the result is still the same, that is not the reason.
After the degree Niang, found a Bo friend hair, and my same, reference https://www.cnblogs.com/sdfkfkd/p/Mvc_Controller_Parameter_Null.html
The problem here is that I have a property named model in this entity .....???????. 10,000 grass and mud horses are galloping past ........
In fact, I did not study this, the post-commit action corresponding value of the way is corresponding to the name, then the property has a model, and then this is not case-sensitive, then do not know when the model to the corresponding entity or property, So it simply returns NULL.
The solution is:
The first one renames the attribute without any of the model or model;
The second is that the parameter name in this action is not called model, and it is the same as the other non-attribute names.
The third kind, someone said, I haven't tried.
The data passed is in model. ID This JSON structure passed over, interested can try.
MVC5 's pit.