get c# model attribute in javascript code example
Example 1: access to model from js
var model = @Html.Raw(Json.Encode(Model));
Example 2: model to js
var objModel =@Html.Raw(Json.Serialize(Model));
var model = @Html.Raw(Json.Encode(Model));
var objModel =@Html.Raw(Json.Serialize(Model));