title: How to redirect controller to razor page in area section asp Core 2.1
body: <p>I want to redirect from my controller to a razor page that's in an area section. My controller user is restricted if the user is null then redirects to the login page in <code>Area/Identity/Pages/Account/login.cshtml</code>.</p>
  
  <p>My Controller:</p>
  
  <pre><code>var user = await _userManager.GetUserAsync(User);
              if (user == null)
              {
                  //return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
  
                  return RedirectToPage("Login");
              }
  </code></pre>
  
  <p>How do I write a return line to redirect to my login page using <code>asp.net core 2.1</code>.</p>