✅ My all the field not passing to the controller from view. Please take a look

It's like chat app where I'm paasing UserName and message from view to controller but only username is passing to controller. please help me
No description
No description
No description
No description
8 Replies
Pobiega
Pobiega2y ago
missnamed arguments
Spirit Flying
Spirit FlyingOP2y ago
mens
Pobiega
Pobiega2y ago
you call it Message in your view, but messageContent in your controller endpoint
Spirit Flying
Spirit FlyingOP2y ago
If im not wrong in method we can give any name
Pobiega
Pobiega2y ago
you are wrong how would it know how to associate them if you can give it any name?
Spirit Flying
Spirit FlyingOP2y ago
As I use in method Okay respected person. Ill try now
Pobiega
Pobiega2y ago
There is no method at this point. Its the view sending a POST request to the controller this is not the same as a C# method call
Spirit Flying
Spirit FlyingOP2y ago
Yes sir im running the code just a min Sir you are so great Thanks to you. I was trying to solve this since 10 Am solved really thanks to you. You came here to help me

Did you find this page helpful?