Exemplo n.º 1
0
        public bool LoginIsSuccess(string NameOrEmail, string Password)
        {
            Account acc = dalacc.LoginIsSuccess(NameOrEmail, Password);

            if (acc != null)
            {
                AccountUser.Account   = acc;
                AccountUser.User      = daluser.Get(acc.UserID);
                AccountUser.isLogined = true;
                return(AccountUser.isLogined);
            }
            return(false);
        }