title: Return value from Azure MobileServices.InvokeApi
body: <p>So Im trying to get a value from my appsettings from azure it successfully returns the value but Im trying to return that value.  Bear with me Im kind of new to javascript here is the code.</p>
  
  <pre><code>function getAppSettings(mobilesvc, appSettings){
   var appSettingsValue;
  
      mobilesvc.invokeApi(appSettings, {
          method: 'GET'
      }).done(function (results) {
         var jsonResponse = JSON.parse(results.responseText);
         appSettingsValue = jsonResponse;      
      }, function (error) {
      });
  
      return appSettingsValue;
  }
  </code></pre>
  
  <p>When I call the getAppSettings function it returns an undefined but within the "promise" if I add a console.log it shows the results.  Any ideas.
  Thanks</p>