I am studying about passing multiple models to view by using various methods. However when I wrote this line:
var allFaculties = @Html.Raw(Json.Encode(ViewData["Faculties"]));
I am getting a syntax error:
returns mark up that is not html encoded
How can I solve this issue?
UPDATE I am using MVC4 ,is there any additional changes i have to do.