private async void SendEmail() { CanExecuteInitial(); try { var user = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY); foreach (var client in Birthdays) { await _userAppService.SendBirthdayEmail(client.Email, user.Name); } UserDialogs.Instance.Toast("Email(s) enviado(s) com sucesso!"); await PopupAnniversaryHelper.EsconderAsync(); } catch { UserDialogs.Instance.Toast("Não foi possível enviar os emails, verifique sua conexão."); } finally { await NavigationHelper.PopLoading(); } CanExecuteEnd(); }
private async void Close() { CanExecuteInitial(); await PopupAnniversaryHelper.EsconderAsync(); CanExecuteEnd(); }