public static IHttpActionResult RedirectToLocal([NotNull] this ApiController thisValue, string returnUrl, Regex logOffUrlExpression, ActionData defaultUrlData)
        {
            string defaultUrl = defaultUrlData?.CreateUrl(thisValue.Url);

            return(RedirectToLocal(thisValue, returnUrl, logOffUrlExpression, defaultUrl));
        }
        public static IHttpActionResult RedirectToLocal([NotNull] this ApiController thisValue, string returnUrl, ActionData logOffActionData, ActionData defaultUrlData)
        {
            Regex logOffUrlExpression = logOffActionData == null ? null : UriHelper.CreateBadRedirectExpression(logOffActionData.CreateUrl(thisValue.Url));

            return(RedirectToLocal(thisValue, returnUrl, logOffUrlExpression, defaultUrlData));
        }