Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Controller.cs
  2. ------------------------------------------------------------------------------------
  3. [HttpPost]
  4. [Route("~/api/reports/DownloadCSVDamages/{date}")]
  5. public HttpResponseMessage DownloadCSVDamages([FromUri]DateTime date)
  6. {
  7. HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);
  8. return result;
  9. }
  10.  
  11. Javascript
  12. --------------------------------------------------------------------------------------
  13. $scope.downloadCSV = function () {
  14. var theDate = moment();
  15. $.ajax({
  16. type: 'POST',
  17. url: '/api/reports/DownloadCSVDamages',
  18. data: theDate
  19. });
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement