Created
January 28, 2014 17:15
-
-
Save ewhitmore/8671930 to your computer and use it in GitHub Desktop.
C# WebAPI - Angularjs $resource decimal hack
This file contains 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
[HttpPut] | |
[Authorize(Roles = "VendorAdmin")] | |
[Route("{id:int}/SetPrice/{price:decimal}")] | |
public IHttpActionResult SetPrice(int id, decimal price) | |
{ | |
//... | |
try | |
{ | |
PricingAgreementItemService.SetPrice(id, price); | |
} | |
catch (Exception) | |
{ | |
return NotFound(); | |
} | |
return Ok(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment