Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. [HttpPost]
  2. public JsonResult AfficherDetailsFacture(AfficheDetails afficheDetailsFacture)
  3. {
  4. // do some stuff
  5. }
  6.  
  7. [Serializable]
  8. public class AfficheDetails
  9. {
  10.  
  11. public List<long> firstList{ get; set; }
  12.  
  13. public List<long> secondList{ get; set; }
  14.  
  15. public string numFacture{ get; set; }
  16. }
  17.  
  18. var AfficheDetails = {
  19. firstList: [31025,6954],
  20. secondList: [31542,31211,23214,23211],
  21. numFacture: "Facture 001"
  22. };
  23.  
  24. $.ajax({
  25. type: "POST",
  26. async: false,
  27. url: urls.urlAfficherDetailsFacture,
  28. contentType: 'application/json',
  29. data: JSON.stringify(AfficheDetails),
  30. success: function (oResultat) {
  31. //
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement