Exemple #1
0
        public async Task <List <History> > GetPartHistory(string number)
        {
            try
            {
                string json = await _client.get_part_history(number);

                return(JsonConvert.DeserializeObject <List <History> >(json));
            }
            catch (Exception ex)
            {
                await Application.Current.MainPage.DisplayAlert("Ошибка", "Нет связи с сервером", "Ок");

                return(new List <History>());
            }
        }