我正在通过RestAPI更新记录,如下所示:
if (contactstatus.Contact_Status_ID == 2)
{
contactstatus.Contact_Status_ID = 1;
Dictionary<string, object> activestatus = new Dictionary<string, object>()
{
{"Contact_Status_ID", contactstatus.Contact_Status_ID}
}; _formRest.UsingAuthenticationToken(token).UpdateRecord("Contacts", contactId, activestatus);
我在最后一行得到System.NullReferenceException
。列的值是int。我可以在这里搞砸什么?