To PUT update to the API????
public async Task<bool> SaveRating(BeerRatingDTO dto)
{
var response = await _client.PutAsJsonAsync<BeerRatingDTO>(AppSettings.WebApiBaseAddress + "BeerRatings", dto);
if (response.IsSuccessStatusCode)
return true;
return false;
}
public async Task<bool> SaveRating(BeerRatingDTO dto)
{
var response = await _client.PutAsJsonAsync<BeerRatingDTO>(AppSettings.WebApiBaseAddress + "BeerRatings", dto);
if (response.IsSuccessStatusCode)
return true;
return false;
}
Comments
Post a Comment