public bool AddMachine(Credentials c, MachineContents m) { var cl = new Ref.FileSyncModelClient(); try { if (c == null) throw new ArgumentNullException("cr", "user credentials must be provided"); if (m == null) throw new ArgumentNullException("m", "machine contents were null"); bool result = false; result = cl.AddMachine(c, m); cl.Close(); return result; } catch (Exception ex) { cl.Abort(); throw new ActionException("Failed to create a new machine.", ActionType.Machine, MemeType.Fuuuuu, ex); } }