private void ValidateUpdateDocument(UpdateDocument updateDocument)
{
if (updateDocument == null)
{
throw new JsonException("Json body can not be empty or whitespace.");
}
if (updateDocument.Data == null)
{
throw new JsonException("Json body should contain some content.");
}
}