public RendezVousViewModel(INavigationService navigationService = null)
 {
     _navigationService = navigationService;
     _permanence = new Permanence();
     getAllPerma();
     rdv = new RendezVous();
 }
Example #2
0
 public async Task<bool> NewRendezVous(RendezVous rdv)
 {
     HttpClient client = new HttpClient();
     string json = JsonConvert.SerializeObject(rdv);
     HttpContent content = new StringContent(json, Encoding.UTF8, "application/json");
     HttpResponseMessage response = await client.PostAsync("http://ekotprojet.azurewebsites.net/api/rendezvous", content);
     if (response.IsSuccessStatusCode)
         return true;
     return false;
 }