Skip to content

Instantly share code, notes, and snippets.

@emrekizildas
Created March 19, 2019 17:08
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/958798d8399814e0797ae0b41df4f13e to your computer and use it in GitHub Desktop.
Save emrekizildas/958798d8399814e0797ae0b41df4f13e to your computer and use it in GitHub Desktop.
$("#kitaplariGetir").click(function(){
$.ajax({
type: 'GET',
url: '/api/Service/GetBooks',
success: function(books){
$("#getBooks").html("");
$.each(books, function(index, value){
$("#getBooks").append("<li>Kitap Adı: <b>"+value.name+" - Yazarı: <b>"+value.authorName+"</b>");
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment