I created a function in one file func.cshtml like this.
@functions {
int sum(a, b)
{
return a+b;
}
}
and I want to use this function in another file.
There are several links I can find, but they are for an older version and won't work for what I want to do.