I am working on ASP.NET Core 2.1 and I want to use Request class in razor page to get current domain by the following code:
@Request.Url.Authority
But Request is not recognized in razor page. How can I access to Request class in razor page? Thanks for any help.