How do I define a method in Razor?

后端 未结 8 798
余生分开走
余生分开走 2020-11-28 05:57

How do I define a method in Razor?

8条回答
  •  臣服心动
    2020-11-28 06:19

    Razor is just a templating engine.

    You should create a regular class.

    If you want to make a method inside of a Razor page, put them in an @functions block.

提交回复
热议问题