I am using Visual Studio C# winforms and have installed the Nuget wrapper. I am trying to check whether a contact record already exists in the Xero database.
string expected = "Test";
var name=api.Contacts
.Where(string.Format("Name == \"{0}\"", expected))
.Find()
.Select(p => p.Name);
bool exists = (name.All(p => p == expected)
This code is returning True even when the record does not exist. Assistance would be appreciated.