We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f835dea commit f04c337Copy full SHA for f04c337
src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/Index.cshtml.cs
@@ -5,16 +5,15 @@
5
using Microsoft.AspNetCore.Mvc;
6
using Microsoft.AspNetCore.Mvc.RazorPages;
7
8
-namespace MyApp.Namespace
9
-{
+namespace MyApp.Namespace;
+
10
#if NameIsPage
11
- public class IndexModel : Microsoft.AspNetCore.Mvc.RazorPages.PageModel
+public class IndexModel : Microsoft.AspNetCore.Mvc.RazorPages.PageModel
12
#else
13
- public class IndexModel : PageModel
+public class IndexModel : PageModel
14
#endif
15
+{
16
+ public void OnGet()
17
{
- public void OnGet()
- {
18
- }
19
}
20
0 commit comments