public ActionResult Identification(Capture model, string id) { if (model.Biodata != null) { //Check identification M2SysBiometricService.BioPluginService bioplugin = new M2SysBiometricService.BioPluginService(); var result = bioplugin.IdentifyQuick(model.Biodata, 0, 1, 1); _logger.Debug(string.Format("IDENTIFY | GATE [{0}] RESULT [(1)]", model.GateTitle, result)); model.Result = LogAccessIdentity(result, id); } model.GateTitle = OperatingIDs[Request.Cookies["OperatingId"].Value]; return View(model); }
public ActionResult Identification(string id = "") { //STORE IN THE SESSION JUST IN CASE? //VERIFY OPERATING ID if (VerifyGate(id)) { HttpCookie operatingIdCookie = Request.Cookies["OperatingId"]; if (operatingIdCookie == null) { operatingIdCookie = new HttpCookie("OperatingId"); operatingIdCookie.Value = id; Response.Cookies.Add(operatingIdCookie); } else { operatingIdCookie.Value = id; Response.Cookies.Set(operatingIdCookie); } Capture model = new Capture(); model.GateTitle = OperatingIDs[id]; return View(model); } return RedirectToAction("Index", "Bio"); }