I'd like to create div-onclick handler, that also takes numeric id of it, but I can't understand how to make it
the only solution I fund, is to change extension to .razor, from .cshtml, but if I do that, it brakes my @model imports and all other things
<div class="question-header" id="question-@i" onclick="@OnQuestionClick(@i)">
@functions {
void OnQuestionClick(int index)
{
Console.WriteLine("da");
}
}```