public bool DoesNotificationResourceExist(Guid notificationId) { var collectionUri = _documentDbHelper.CreateNotificationsDocumentCollectionUri(); var client = _databaseClient.CreateDocumentClient(); if (client == null) { return(false); } var qQry = client.CreateDocumentQuery <Document>(collectionUri, new FeedOptions() { MaxItemCount = 1 }); return(qQry.Where(x => x.Id == notificationId.ToString()).Select(x => x.Id).AsEnumerable().Any()); }