Last active
August 29, 2015 14:00
-
-
Save TerryMooreII/5a53f7498b20b511e039 to your computer and use it in GitHub Desktop.
azure-angular-service-4.js - Cardinal Solutions blog post: Azure Angular Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| … | |
| 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