Example #1
0
        public IActionResult DecodeQR(string text)
        {
            var    qrHandler = new QRHandler();
            QRData qrData;

            try
            {
                qrData = qrHandler.DecodeQRCode(text);
            } catch (Exception ex)
            {
                return(RedirectToAction("QRCodeReader"));
            }


            return(RedirectToAction("Details", "Check", new { id = Int32.Parse(qrData.location_id), serverId = Int32.Parse(qrData.server_id) }));
        }