Exemple #1
0
 public ActionResult Index(UserLogInViewModel model)
 {
     GameRequestViewModel game = new GameRequestViewModel();
     game.UserName = model.Name;
     game.UserPassword = model.Password;
     return View(game);
 }
 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();
     }
 }
 public ActionResult LogInSuccess(UserLogInViewModel model)
 {
     return RedirectToAction("Index", "Home", model);
 }
Exemple #4
0
 public ActionResult Users(UserLogInViewModel model)
 {
     return View(model);
 }