public virtual IActionResult SetTaxType(int customerTaxType, string returnUrl = "") { _commonWebService.SetTaxType(customerTaxType); //home page if (String.IsNullOrEmpty(returnUrl)) { returnUrl = Url.RouteUrl("HomePage"); } //prevent open redirection attack if (!Url.IsLocalUrl(returnUrl)) { returnUrl = Url.RouteUrl("HomePage"); } return(Redirect(returnUrl)); }