コード例 #1
0
 public Tag Update(Tag Tag)
 {
     using (var client = new HttpClient())
     {
         HttpResponseMessage response =
             client.PutAsJsonAsync("http://localhost:17348/api/Tag/" + Tag.Id, Tag).Result;
         return response.Content.ReadAsAsync<Tag>().Result;
     }
 }
コード例 #2
0
        public void Delete(Tag Tag)
        {
            using (var client = new HttpClient())
            {
                HttpResponseMessage response =
                    client.DeleteAsync("http://localhost:17348/api/Tag/" + Tag.Id).Result;

            }
        }