Ejemplo n.º 1
0
 public static void Update(int shareId)
 {
     var share = new JsonShare()
     {
         Name  = "testUpdate",
         Price = 100
     };
     var client   = new HttpClient();
     var response = client.PutAsJsonAsync($"{baseUrl}api/shares/update/{shareId}", share);
 }
Ejemplo n.º 2
0
 public static void Add()
 {
     var share = new JsonShare()
     {
         Name  = "testFromClient",
         Price = 100
     };
     var client   = new HttpClient();
     var response = client.PostAsJsonAsync($"{baseUrl}api/shares/add/", share);
 }