public ActionResult GetQrDownload() { using (QREncoder encoder = new QREncoder()) { Uri blob = new BlobConnector().GetScannerSAS(); return(encoder.GetQRImage(new PayloadGenerator.Url(blob.ToString()), Color.White)); } }
public ActionResult GetQrDownload(string gameName) { using (QREncoder encoder = new QREncoder()) { Uri blob = new BlobConnector().GetGameSAS(gameName); return(encoder.GetQRImage(new PayloadGenerator.Url(blob.ToString()))); } }
public ActionResult GetQrCode() { if (!(Session[Statics.Visitorkey] is QRModel qrInfo)) { return(null); } using (QREncoder encoder = new QREncoder()) { return(encoder.GetQRImage(Convert.ToBase64String(Serializer.ToByteArray(qrInfo.ToArray())), Color.LightGray)); } }