Exemple #1
0
        public async Task <HttpResponseMessage> UpdateMatch(MatchDTO matchDTO)
        {
            string        URI  = Put.Replace("{id}", Convert.ToString(matchDTO.Id));
            StringContent json = new StringContent(JsonConvert.SerializeObject(matchDTO),
                                                   Encoding.UTF8, "text/json");

            using (HttpClient httpClient = new HttpClient())
            {
                return(await httpClient.PutAsync(URIService.Build(URI), json));
            }
        }