I have a .NET api endpoint that returns anonymous data and client side received these either through Promise like this:
function getDataByPromise(method, url)