Skip to main content

Punk API 18hour Experiment - Step #4

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

Comments