public ActionResult Delete(Zoekertje zoekertje)
 {
     Data.DeleteZoekertjes(zoekertje.Id);
     List<Zoekertje> alleZoekertjes = new List<Zoekertje>();
     alleZoekertjes = Data.GetZoekertjes();
     return View("Index", alleZoekertjes);
 }
 public async Task<bool> AddZoekertje(Zoekertje newZoekertje)
 {
     using (HttpClient client = new HttpClient())
     {
         string url = string.Format("{0}{1}", URL, "/zoekertjemobile");
         string json = JsonConvert.SerializeObject(newZoekertje);
         HttpResponseMessage response = await client.PostAsync(url, new StringContent(json,Encoding.UTF8,"application/json"));
         if (response.IsSuccessStatusCode)
         {
             return true;
         }
         return false;
     }
 }
        private async void btnSave_Click(object sender, RoutedEventArgs e)
        {
            Zoekertje newZoekertje = new Zoekertje();
            newZoekertje.Titel = txtWat.Text;
            newZoekertje.Omschrijving = txtOmschrijving.Text;
            newZoekertje.Naam = txtNaam.Text;
            newZoekertje.Telefoon = txtTelefoon.Text;
            newZoekertje.Email = txtEmail.Text;
            newZoekertje.Prijs = decimal.Parse(txtPrijs.Text);
            newZoekertje.CategorieId = (cmbCat.SelectedItem as Categorie).Id;
            newZoekertje.LocatieId = (cmbLoc.SelectedItem as Locatie).Id;
            newZoekertje.ContacteerViaEMail = chkMail.IsChecked.Value;
            newZoekertje.ContacteerViaTelefoon = chkTel.IsChecked.Value;

            if (await wsa.AddZoekertje(newZoekertje) == true)
            {
                lstData.ItemsSource = await wsa.Load();
            }
                 
        }
 public PMNewZoekertje()
 {
     NewZoekertje = new Zoekertje();
 }