예제 #1
0
 public ActionResult Index(LoginVM vm)
 {
     if (ModelState.IsValid)
     {
         _bankService = BankService.GetInstance();
         if (_bankService.AuthenticateUser(vm.AccountNo, vm.Password))
         {
             Session["user"] = vm.AccountNo;
             Session.Timeout = 1;
             RedirectToAction("Index", "Home");
         }
         return(View(vm));
     }
     return(View(vm));
 }