ASP.net how to send a c# object to javascript code example
Example: MVC view pass model to javascript function
//Get your view model from js
var dto = @Html.Raw(Json.Encode(Model));
//Get your view model from js
var dto = @Html.Raw(Json.Encode(Model));