Ejemplo n.º 1
0
        public ActionResult Login(string username, string password)
        {
            AdminUser user = generalOperations.GetLoginUser(username, password);

            if (user != null)
            {
                Session.Add("Login", user);
                return(RedirectToAction("Index", "Admin"));
            }
            else
            {
                ViewBag.result = "Şifre Hatalı";
                return(View());
            }
        }