Skip to content

Instantly share code, notes, and snippets.

@gngeorgiev
Last active November 24, 2017 18:52
Show Gist options
  • Save gngeorgiev/bcaf5fa1276c938c089df8ad8deb3f0e to your computer and use it in GitHub Desktop.
Save gngeorgiev/bcaf5fa1276c938c089df8ad8deb3f0e to your computer and use it in GitHub Desktop.
sashido-telerik-platform-CRUD.js
var gameScore = everlive.data('GameScore');
//Create
gameScore.create({ score : 1337 }).then(...);
//Read
gameScore.getById('item-id').then(...);
//Update
gameScore.updateSingle({ Id: 'item-id', score: 9999 }).then(...);
//Delete
gameScore.destroySingle({ Id: 'item-id' }).then(...);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment