Is it possible to access the javascript variable inside razor syntax?
Here is my code
$("#add-user-to-plan").click(function () {
var userListId = $("#user-list").val();
@{
Model.Users.Add(userListId );
}
});
When I click the add-user-to-plan button it will add an item to a list of Users.