MVC 4 ViewModel not being sent back to Controller

后端 未结 9 1803
感情败类
感情败类 2020-12-08 07:17

I can\'t seem to figure out how to send back the entire ViewModel to the controller to the \'Validate and Save\' function.

Here is my controller:

[H         


        
9条回答
  •  广开言路
    2020-12-08 07:46

    Try Form Collections and get the value as. I think this may work.

    public ActionResult Send(FormCollection frm)
    {
        var time = frm['Transaction.Time'];
    }
    

提交回复
热议问题