Update RazorPage.cs

So that email can be sent in console application.