|
|
@ -21,6 +21,11 @@ namespace ProjetBlazor.Services
|
|
|
|
await _http.PostAsJsonAsync("https://localhost:7234/api/controleur/", musique);
|
|
|
|
await _http.PostAsJsonAsync("https://localhost:7234/api/controleur/", musique);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<int> Count()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return await _http.GetFromJsonAsync<int>("https://localhost:7234/api/Crafting/count");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task Delete(int id)
|
|
|
|
public async Task Delete(int id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await _http.DeleteAsync($"https://localhost:7234/api/Crafting/{id}");
|
|
|
|
await _http.DeleteAsync($"https://localhost:7234/api/Crafting/{id}");
|
|
|
|