public async Task <List <History> > GetHistory() { try { string json = await _client.get_history(App.GetUser().login); return(JsonConvert.DeserializeObject <List <History> >(json)); } catch (Exception ex) { await Application.Current.MainPage.DisplayAlert("Ошибка", "Нет связи с сервером", "Ок"); return(new List <History>()); } }