private void AddNewMachine() { Machine newMachine = new Machine(); GetMachine(newMachine); // send to webservice ServiceRequest.Post svc = new ServiceRequest.Post(); //svc.RequestType = "addNewUser"; svc.PostData = newMachine; svc.AddNewMachine(); // if rc = 0 then add to collection if (svc.Success) { Machines.Add(newMachine); base.OnPropertyChanged("MachineList"); } }