daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void Post(string values)
  2.     {
  3.         var r = values;
  4.  
  5.     }
  6.    
  7. $scope.SubmitData = function (DataToSubmit) {
  8.     var string = JSON.stringify(DataToSubmit);
  9.     $http({
  10.         method: 'POST',
  11.         data: {
  12.             values: string,
  13.         },
  14.         url: 'api/aulamethod',
  15.     });
  16. }
  17.    
  18. values:"[{"CompanyName":"column a","SupplierCode":"column b","DocumentNumber":"column c","Reference":"column d","InternalCurrencyValue":"column e","BlockadeUnblocking1":"column f","Justification":"column g","Request":"column h","$$hashKey":"object:23"}]"
  19.    
  20. public class ValuesViewModel
  21. {
  22.     public string Values { get; set; }
  23. }
  24.    
  25. [HttpPost]
  26. public void Post([FromBody]ValuesViewModel values)
  27. {
  28.    var r = values;      
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top