public Task <ResourceResponse <Document> > UpdateAccDataAsync(AccelerometerData accdata)
        {
            var doc = Client.CreateDocumentQuery <Document>(Collection.DocumentsLink)
                      .Where(d => d.Id == accdata.ID)
                      .AsEnumerable() // why the heck do we need to do this??
                      .FirstOrDefault();

            return(Client.ReplaceDocumentAsync(doc.SelfLink, accdata));
        }
 public Task <ResourceResponse <Document> > CreateAccData(AccelerometerData accdata)
 {
     return(Client.CreateDocumentAsync(Collection.DocumentsLink, accdata));
 }