Exemplo n.º 1
0
        async Task <Uri> CreateRaportAsync(Raport rap)
        {
            HttpResponseMessage response = await client.PostAsJsonAsync(
                "api/RaportsApi", rap);

            response.EnsureSuccessStatusCode();
            return(new Uri("https://localhost:" + textBoxLocalHost.Text + "/" + response.Headers.Location));
        }
Exemplo n.º 2
0
 public Form1()
 {
     InitializeComponent();
     raport = new Raport();
     comboBoxChargingPower.SelectedItem = comboBoxChargingPower.Items[0];
 }