Пример #1
0
 public ActionResult Index(UserLogInViewModel model)
 {
     GameRequestViewModel game = new GameRequestViewModel();
     game.UserName = model.Name;
     game.UserPassword = model.Password;
     return View(game);
 }
Пример #2
0
 public ActionResult LogIn(UserLogInViewModel model)
 {
     if (ModelState.IsValid && PlayerRepository.AuthorizationCheck(model.Name, model.Password)!=null)
     {
         return RedirectToAction("LogInSuccess", model);
     }
     else
     {
         ViewBag.Error= "Wrong name or password!";
         return View();
     }
 }
Пример #3
0
 public ActionResult LogInSuccess(UserLogInViewModel model)
 {
     return RedirectToAction("Index", "Home", model);
 }
Пример #4
0
 public ActionResult Users(UserLogInViewModel model)
 {
     return View(model);
 }