Esempio n. 1
0
        public AppDevices GetAppDevicesById(int id)
        {
            var        result     = _client.GetStringAsync(apiurl + "/" + id).Result;
            AppDevices appDevices = JsonConvert.DeserializeObject <AppDevices>(result);

            return(appDevices);
        }
Esempio n. 2
0
 public void UpdateAppDevice(AppDevices appDevices)
 {
     string        json    = JsonConvert.SerializeObject(appDevices);
     StringContent content = new StringContent(json, Encoding.UTF8, "application/json");
     var           res     = _client.PutAsync(apiurl, content).Result;
 }