public IActionResult TriggerFingerprint()
        {
            // Description: Using for DEBUG. URL: https://lifeblocks.site/home/testfingerprintbutton
            ViewBag.DoctorName = HttpContext.Session.GetString(Globals.currentUserName);

            // Retrieve the Public IP of the Client Computer using the browser
            var       ip        = HttpContext.Connection.RemoteIpAddress;
            string    ipAddress = ip.ToString();
            bool      debug     = true; // true for DEBUG
            string    status    = "entered function";
            TcpClient tcpClient = new TcpClient();

            List <Image> fpList = FingerprintService.authenticateFP("24.84.225.22", 3);

            // Do fingerprint fetch from windows service here
            Image fpImg = null;

            for (int i = 0; i < fpList.Count; i++)
            {
                var debugByte = FingerprintService.imgToByte(fpList[i]);
                fpImg = FingerprintService.byteToImg(debugByte);
                fpImg.Save(i.ToString() + ".bmp");
            }

            // Write the Public IP of the client computer on the window
            var model = new TestFingerprintButton()
            {
                message = status
            };

            return(RedirectToAction("TestFingerprintButton", model));
        }
 public IActionResult TestFingerprintButton(TestFingerprintButton model)
 {
     ViewBag.DoctorName = HttpContext.Session.GetString(Globals.currentUserName);
     return(View(model));
 }