MVC view pass model to javascript function
//Get your view model from js
var dto = @Html.Raw(Json.Encode(Model));
Are there any code examples left?
New code examples in category Javascript
//Get your view model from js
var dto = @Html.Raw(Json.Encode(Model));