Exemple #1
0
        public ActionResult LogIn(LogIn logIn)
        {
            var admins = _userAccountManager.GetAll();

            admins = admins.Where(c => c.UserName == logIn.UserName && c.Password == logIn.Password).ToList();
            if (admins.Count > 0)
            {
                ViewBag.msg = "yes";
            }

            else
            {
                ViewBag.msg = "no";
            }

            return(View("Home"));
        }
Exemple #2
0
        public ActionResult Index()
        {
            var registers = _userAccountManager.GetAll();

            return(View(registers));
        }