コード例 #1
0
        private bool LoginCorrecto(string email, string password)
        {
            var c = new ClienteEN();

            c.Email    = email;
            c.Password = password;
            if (c.LoginCorrecto())
            {
                return(true);
            }
            return(false);
        }
コード例 #2
0
        protected void ComprobarDatos(object sender, ServerValidateEventArgs e)
        {
            e.IsValid = false;
            var c = new ClienteEN();

            c.Email    = Email.Text;
            c.Password = Password.Text;
            if (c.LoginCorrecto())
            {
                e.IsValid = true;
            }
        }