Esempio n. 1
0
        public override async void Start()
        {
            try
            {
                using (_userDialogs.Loading("Loading"))
                {
                    var result = await _api.Get(Convert.ToInt32(Id));

                    var resultSimilar = await _api.GetSimilar(Convert.ToInt32(Id));

                    SinglePost = result.Data;

                    SimilarPosts = resultSimilar.Data;
                }
            }
            catch (Exception)
            {
                await _userDialogs.AlertAsync(Mvx.IoCProvider.Resolve <ILocalizeService>().Translate("Error"), Mvx.IoCProvider.Resolve <ILocalizeService>().Translate("Error"), Mvx.IoCProvider.Resolve <ILocalizeService>().Translate("Ok"));

                throw;
            }
        }