Ugly God
✅ How can I pass data from JS to a ViewModel?
Sorry in advance if the issue is JS related.
I'm trying to make a small MVC project - I'm having trouble trying pass an object from JS then to the Controller. I can pass the data normally when using a Model but I don't know how to do it when dealing with a ViewModel.
The Transactions Model would always return a NULL.
Any help is very much appreciated. Many Thanks!
JS Function:
Controller:
ViewModel:
9 replies