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); }
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); }