Guest User

Untitled

a guest
Oct 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. $http.get(BasePath + '/api/documentapi/GetDocuments/' ,
  2. {
  3. params: {
  4. PrimaryID: ID1,
  5. AlternateID: ID2,
  6. }
  7. }).then( ...
  8.  
  9. public DocumentsDto[] GetDocuments(decimal? PrimaryID, decimal? AlternateID)
  10. { ...
  11.  
  12. http://BaseServerPath/api/documentapi/GetDocuments/?PrimaryID=1688
  13.  
  14. http://BaseServerPath/api/documentapi/GetDocuments/?SecondaryID=154
  15.  
  16. http://BaseServerPath/api/documentapi/GetDocuments/?PrimaryID=1688&SecondaryID=null
  17.  
  18. public string GetFindBooks(string author="", string title="", string isbn="", string somethingelse="", DateTime? date= null)
  19. {
  20. // ...
  21. }
  22.  
  23. public DocumentsDto[] GetDocuments(decimal? PrimaryID = null, decimal? AlternateID = null)
  24. { ...
  25.  
  26. $http.get(BasePath + '/api/documentapi/GetDocuments/' ,
  27. {
  28. params: {
  29. PrimaryID: ID1!=undefined?ID1:0,
  30. AlternateID: ID2!=undefined?ID2:0,
  31. }
  32. }).then( ...
Add Comment
Please, Sign In to add comment