My razor function in my index.cshtml
@functions{
public void FillTheList(){
//some part of code
}
}
I need to run FillTheList()-same cshtml with - function
<script>
@{
FillTheList();
}
</script>
Javascript cannot run FillTheList() function this code.How to i fix it