public int UpdateSwitch(int empTake, int empAsk, int shift, string type) { RikoshetWebService.RikoshetWebService t = new RikoshetWebService.RikoshetWebService(); int temps = JsonConvert.DeserializeObject <int>(t.updateSwitch(empTake, empAsk, shift, type)); return(temps); }