Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ public async Task<List<ClothingItemDTO>> GetAllClothingItemsAsync()

public async Task AddNewClothingItemAsync(NewClothingItemDTO newNewClothingItem)
{
await _httpClient.PostAsJsonAsync<NewClothingItemDTO>("/clothing/add", newNewClothingItem);
var response = await _httpClient.PostAsJsonAsync<NewClothingItemDTO>("/clothing/add", newNewClothingItem);
response.EnsureSuccessStatusCode();
}

public async Task DeleteClothingItemAsync(int itemId)
{
await _httpClient.PostAsJsonAsync<int>("/clothing/delete", itemId);
var response = await _httpClient.PostAsJsonAsync<int>("/clothing/delete", itemId);
response.EnsureSuccessStatusCode();
}

#endregion
Expand Down