コード例 #1
0
        protected string GetActivationUrl(HtmlHelper html, string activationCode, bool secure, string applicationPath, params string[] parameters)
        {
            if (string.IsNullOrEmpty(activationCode))
            {
                return(html.TinyUrl(secure, applicationPath, parameters));
            }

            var webSiteUrl = WebSiteQuery.GetUrl(WebSite.LinkMe, null, secure, applicationPath, new ReadOnlyQueryString(parameters));

            return(html.TinyUrl(false, "~/accounts/activation", "activationCode", activationCode, "returnUrl", webSiteUrl.PathAndQuery));
        }
コード例 #2
0
        protected string GetLogoutUrl(HtmlHelper html, bool secure, string applicationPath, params string[] parameters)
        {
            var webSiteUrl = WebSiteQuery.GetUrl(WebSite.LinkMe, null, secure, applicationPath, new ReadOnlyQueryString(parameters));

            return(html.TinyUrl(true, "~/logout", "returnUrl", webSiteUrl.PathAndQuery));
        }