Example #1
0
        private async Task GetEventsGalleryAsync()
        {
            try
            {
                UserDialogs.Instance.ShowLoading("Loading");

                var response = await _restApi.GetEventsGallery();

                if (response != null)
                {
                    EventsGallery = new ObservableCollection <Event>(response.GalleryDetails);
                }
            }
            catch (Exception ex)
            {
            }
            finally
            {
                UserDialogs.Instance.HideLoading();
            }
        }