Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPrices(articles) {
- return $http.get('http://someurl/api/prices/getprices', { params: { articles: articles } }).then(function (res) {
- // do something with prices
- }, function (err) {
- // handle error
- });
- }
- var oneArticle = {
- code: 'someCode',
- quantity: 1,
- stockUnit: 'piece'
- }
- [VersionedRoute("getprices")]
- [HttpGet]
- public IHttpActionResult GetPrices([FromUri]List<Article> articles) {
- // do something with input
- }
- public class Article {
- public string Code {get;set;}
- public int Quantity {get;set;}
- public string StockUnit {get;set;}
- }
Add Comment
Please, Sign In to add comment