Rijen Juni

Rijen Juni

  • NA
  • 16
  • 7.1k

How to store Model in view to variable in Controller

Aug 27 2015 5:22 AM
How to store editmodelfor to a variable so i can use in controller
 
example:
<div class="form-group">
@Html.LabelFor(model => model.total_card, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.total_card)
@Html.ValidationMessageFor(model => model.total_card)
</div>
</div>
i wanna store result of that code in a variable 
i was try:
var total_card= model=>model.total_card
but its still not works 
 

Answers (1)