public bool Linked(string loginUsuario, string loginConta) { try { return(ControladorUsuarioConta.ValidateTheExistenceOfLink(loginUsuario, loginConta)); } catch { return(false); /*Alguma falha no processamento*/ } }
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); } }