예제 #1
0
 public ActionResult CheckPin(PinModel model)
 {
     if (ModelState.IsValid)
     {
         IsPinChecked = true;
         return Redirect(LastActionUrl);
     }
     PinFailCount++;
     if (PinFailCount > 3)
     {
         return RedirectToAction("Index");
     }
     model.FailCount = PinFailCount;
     return View(model);
 }
예제 #2
0
 public ActionResult CheckPin()
 {
     var model = new PinModel {FailCount = PinFailCount};
     return View(model);
 }