how to redirect to extern page in .net core

C#
public ActionResult YourAction()
{
    // ...
    return Redirect("http://www.example.com");
}
Source

Also in C#: