예제 #1
0
        public ActionResult QRShare()
        {
            string url = string.Format("{0}://{1}/home/shareapp", Request.Scheme, Request.Host.Value);

            QRCodeBuild.CreateQR(url, hostingEnvironment.WebRootPath);
            return(View());
        }
예제 #2
0
        public ActionResult QRShare()
        {
            string url = "http://" + Request.Url.Authority + "/home/shareapp";

            QRCodeBuild.CreateQR(url);
            return(View());
        }