I have this URL: localhost:44302/api/SendMessage
Where it needs to work with GET and POST at the same time, so
localhost:44302/api/SendMessage/?destination=something@email.com&message=helloworld
needs to work the same way that a ajax POST can work too.
Right now the Method it's like this:
[Route("[controller]/[action]")]
[ApiController]
public class apiController : ControllerBase
{
public async Task<string> SendMessage(string destination, string message)
{
But it only works via GET, and if add the [FROMBODY]
it stops to work, is there any workaround?