I have this razor line, the editor shows a syntax error but it works fine in runtime.
<script>app.addCalendar(@Html.Raw(Model.CurrentDetailsJson), @Model.Shift.Id);</script>

What is the correct way to write that line?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The way you wrote it. You could safely ignore the stupidity of Visual Studio’s Intellisense and hope that Microsoft will improve it some day. Until that day comes, have confidence in the code you have written and stop trusting what automated tools are telling you.