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