private bool LoginCorrecto(string email, string password) { var c = new ClienteEN(); c.Email = email; c.Password = password; if (c.LoginCorrecto()) { return(true); } return(false); }
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; } }