コード例 #1
0
        public Task <ResourceResponse <Document> > UpdateUserAsync(RegisterUserData user)
        {
            var doc = Client.CreateDocumentQuery <Document>(Collection.DocumentsLink)
                      .Where(d => d.Id == user.ID)
                      .AsEnumerable() // why the heck do we need to do this??
                      .FirstOrDefault();

            return(Client.ReplaceDocumentAsync(doc.SelfLink, user));
        }
コード例 #2
0
 public Task <ResourceResponse <Document> > ReigsterUser(RegisterUserData user)
 {
     return(Client.CreateDocumentAsync(Collection.DocumentsLink, user));
 }