Example #1
0
        public ActionResult PatientScanner(string imagePath = "")
        {
            var qrCodePath   = $"{Server.MapPath("~/QrCodePath")}\\{imagePath}";
            var qrCodeReader = new QRCodeReader(qrCodePath);
            var decodeData   = qrCodeReader.ReadQRCode();
            var patientId    = _objIPatient.GetPatientIdByQrCode(decodeData.QRCodeText);

            return(RedirectToAction("ViewBooking", new { id = 0, viewMessage = "", patientId = patientId }));
        }