Example #1
0
 private async Task <string> SendPostRequestAsync(string request, List <KeyValuePair <string, string> > pars)
 {
     try
     {
         return(await _API.SendPostAync(request, pars));
     }
     catch (HttpRequestException exp)
     {
         await DisplayAlert("Ошибка запроса на сервер", exp.Message, "Ок");
     }
     catch (Exception exp)
     {
         await DisplayAlert("Необработанная ошибка", exp.Message, "Ок");
     }
     return(null);
 }