Razor @helper in App_Code cannot be accessed

В моем App_code есть вспомогательная функция FormatTelephone(string number) в Formatter.cshtml. Я попытался получить к ней доступ в частичном представлении по @Formatter.FormatTelephone(number). Когда я проверяю его, появляется сообщение

Compiler Error Message: CS0103: The name 'Formatter' does not exist in the current context

Какова вероятная причина этого? Спасибо!

7
задан uni 20 October 2011 в 16:57
поделиться