Skip to content

Instantly share code, notes, and snippets.

@emrekizildas
Created March 19, 2019 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emrekizildas/bc175de4d516797d5595a81c3f006622 to your computer and use it in GitHub Desktop.
Save emrekizildas/bc175de4d516797d5595a81c3f006622 to your computer and use it in GitHub Desktop.
$("#yazarlariGetir").click(function(){
$.ajax({
type: 'GET',
url: '/api/Service/GetAuthors',
success: function(books){
$("#getAuthors").html("");
$.each(books, function(index, value){
$("#getAuthors").append("<li>Yazar Adı: <b>"+value.authorName+" - Kitap Sayısı: <b>"+value.totalBook+"</b>");
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment