angularjs - How to pass arrays from angular to VB API? -


i'm new vb , i'm trying pass array values angular vb api

values

var topass = [{"codemerch":440077,"namemerch":"aelpler¿ magrone 2kg (2)","categorymerch":3576,"statusmerch":null,"unitpricemerch":0,"unitmerch":"g","kioskmerch":"10","existingingredient":"440077","linkedmerch":"","$$hashkey":"object:431"},{"codeprod":"441371","nameprod":"test product","categoryprod":"tine test","statusprod":"1","unitpriceprod":"15","unitprod":"","$$hashkey":"object:441"}] 

here's code

$.ajax({         url: "api/postproductlink",         type: "post",         data: topass,         datatype: "json",         success: function (result) {             alert(result);         }     }); 

i want convert each values string on api

<httppost> <post("api/postproductlink")> _ public function postproductlink()     'code here end function 

thanks in advance!


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -