call API from razor page on button press
I have a razor page server using asp.net and I need to call the api from a button press, I have been struggling with this for longer than I am willing to admit, so I am just gonna give you the code here. I know that the API communication itself works, since I have another console app where it works just fine. I need to call the API on a button press and then show the result on the page itself. It would really help if someone could also tell me how to do it with arguments (the argument being the filepath..), thanks in advance.
ASP.NET Web Forms to ASP.NET CORE Razor Pages
I have a handful of ASP.NET Web Forms I need to start converting to ASP.NET Core Razor Pages.