Esempio n. 1
0
        void Init()
        {
            Device.BeginInvokeOnMainThread(async() =>
            {
                try
                {
                    IsWaiting = true;

                    var login = _loginLogic.Get();

                    Model = await _usuarioLogic.GetAsync(login.Telefone);

                    IsWaiting = false;
                }
                catch (Exception)
                {
                    IsWaiting = false;
                    await Message.DisplayAlert("Erro", "Não foi possível conectar-se ao servidor, tente novamente em breve.", "Ok");
                }
            });
        }
Esempio n. 2
0
 public async Task <Usuario> ObterUmUsuarioPeloId()
 {
     return(await _logic.GetAsync(2));
 }