AccountManagement.Controllers.AccountController.RedirectToLocal C# (CSharp) Method

RedirectToLocal() private method

private RedirectToLocal ( string returnUrl ) : System.Web.Mvc.ActionResult
returnUrl string
return System.Web.Mvc.ActionResult
        private ActionResult RedirectToLocal(string returnUrl)
        {
            if (Url.IsLocalUrl(returnUrl))
            {
                return Redirect(returnUrl);
            }
            else
            {
                return RedirectToAction("Index", "Home");
            }
        }