How to make API call to invite user and keep user on same page but change button title to invited?
The best way to achieve this in ASP.NET Core is to use AJAX calls to the API endpoint and update the button text on the client-side once the API call is successful. Below are the high-level steps: Create an API endpoint that accepts the user’s invitation details and updates the user’s record in the database…