public ActionResult LogIn(string login, string password) { Users user = new Users(); user.Login = user.Hash(login); user.Password = user.Hash(password); if (usersDAO.DoExists(user.Login, user.Password)) { return(RedirectToAction("FriendList", "FriendManagement", new { login = user.Login })); } else { return(View()); } }