Skip to content

Instantly share code, notes, and snippets.

@ewhitmore
Last active January 4, 2016 20:09
Show Gist options
  • Save ewhitmore/8671859 to your computer and use it in GitHub Desktop.
Save ewhitmore/8671859 to your computer and use it in GitHub Desktop.
C# WebAPI - Angularjs $resource decimal hack
app.factory('PricingAgreementItemSvc', function ($resource) {
return $resource('/api/pricingAgreementItem/:id/:action/:value\\/', { id: '@id' },
{
// ...
setPrice: {
method: 'PUT',
params: {
id: '@id',
action: 'SetPrice',
value: '@value'
}
},
// ...
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment