public static SqlInt32 SW_AddVendor(string ShipwireUsername, string ShipwirePassword, string JsonString) { ShipwireClient sw = new ShipwireClient(ShipwireUsername, ShipwirePassword); int success = sw.AddVendor(JsonString); if (!String.IsNullOrEmpty(sw.ErrMsg)) RaiseErr(sw.ErrMsg); return success; }
private void AddVendor() { sw = new ShipwireClient(_uname, _pwd); long id = sw.AddVendor(txtRawData.Text); txtRawData.Clear(); txtRawData.Text = "Vendor ID: " + id; }