public void GetData()
        {
            var passport = getOfflinePassportUseCase.Execute();

            View.SetQRInfo(QRUtils.GenerateQRInfo(passport));
            var message = CalculatePassportExpiration(passport);

            View.SetPassportInfo(passport, message);
        }
        public async Task GetData()
        {
            await Task.Delay(50);

            View.ShowLoading();
            var  passport         = getOfflinePassportUseCase.Execute();
            bool offline          = false;
            var  passportResponse = await getPassportUseCase.Execute(true);

            View.HideLoading();
            if (passportResponse.ErrorCode > 0)
            {
                if (passport == null)
                {
                    View.ShowDialog(passportResponse.Message, "msg_ok", null);
                    return;
                }
                offline = true;
            }
            else
            {
                passport = passportResponse.Data;
            }
            View.SetQRInfo(QRUtils.GenerateQRInfo(passport));
            var message = CalculatePassportExpiration(passport);

            View.SetPassportInfo(passport, message, offline);

            estadoPasaporte = passport.EstadoId;
            int state = settingsService.GetValueOrDefault <int>(DomainConstants.LAST_PASSPORT_STATE, -1);

            if (state != estadoPasaporte)
            {
                if (passport.HasMessage)
                {
                    View.ShowStateChange();
                }
                settingsService.AddOrUpdateValue <int>(DomainConstants.LAST_PASSPORT_STATE, estadoPasaporte);
            }
        }