コード例 #1
0
        public static MvcHtmlString Linksin(this HtmlHelper helper, Alexa alexa)
        {
            var links = alexa.GetLinksin();

            var html = $"<a href = 'http://www.alexa.com/site/linksin/{alexa.WebSite}' target='_blank'>{links.ToString("##,###")}</a>";

            return(new MvcHtmlString(html));
        }
コード例 #2
0
        public static MvcHtmlString GlobalRanking(this HtmlHelper helper, Alexa alexa)
        {
            var globalRank = alexa.GetGlobalRanking();

            var html =
                $"<a href='http://www.alexa.com/siteinfo/{alexa.WebSite}#trafficstats' target='_blank'>{globalRank.ToString("##,###")}</a>";

            return(new MvcHtmlString(html));
        }
コード例 #3
0
        public static MvcHtmlString Linksin(this HtmlHelper helper, string domain)
        {
            var alexa = new Alexa(domain);

            return(Linksin(helper, alexa));
        }
コード例 #4
0
        public static MvcHtmlString LocalRanking(this HtmlHelper helper, string domain)
        {
            var alexa = new Alexa(domain);

            return(LocalRanking(helper, alexa));
        }