Skip to content

Instantly share code, notes, and snippets.

@TerryMooreII
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save TerryMooreII/5a53f7498b20b511e039 to your computer and use it in GitHub Desktop.

Select an option

Save TerryMooreII/5a53f7498b20b511e039 to your computer and use it in GitHub Desktop.
azure-angular-service-4.js - Cardinal Solutions blog post: Azure Angular Service
return {
insert: function(tableName, obj){
if (isNullOrUndefined(tableName)){
console.error('Azureservice.insert: You must specify a table name');
return null;
}
if (isUndefinedOrNotAnObject(obj)){
console.error('Azureservice.insert: You must specify the insert object');
return null;
}
return wrapAzurePromiseWithAngularPromise(getTable(tableName).insert(obj));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment