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)); }
public Task <ResourceResponse <Document> > ReigsterUser(RegisterUserData user) { return(Client.CreateDocumentAsync(Collection.DocumentsLink, user)); }