public bool Linked(string loginUsuario, string loginConta)
 {
     try
     {
         return(ControladorUsuarioConta.ValidateTheExistenceOfLink(loginUsuario, loginConta));
     }
     catch { return(false); /*Alguma falha no processamento*/ }
 }
Exemple #2
0
        protected void btnRegister_Click(object sender, EventArgs e)
        {
            try
            {
                this.ValidateViewItems();
                if (this.Action == EnumActionShardAccount.NewAccount)
                {
                    ControladorShardAccount.Manter(int.MinValue, this.RecuperarLoginUsuarioLogado(), this.Login, this.Password, string.Empty, string.Empty, false, false, null);
                }
                else
                {
                    ControladorUsuarioConta.LinkingWebAccountToShardAccount(this.RecuperarLoginUsuarioLogado(), this.Login, this.Password);
                }

                this.ExibirMensagemAlerta("your account has been created/associated with success.");
                this.btnRegister.Enabled = false;
            }
            catch (Exception erro) { base.ExibirMensagemAlerta(erro.Message); }
        }