I have an URL to generate jwt token for API calls. I want to create a web api action method with token autherizion. How can I validate the token inside the action method?
[Authorize]
[HttpPost]
[Route("api/customer")]
public String customer(APICustomer APICustomer1)
{
try
{
insert_Customer(APICustomer1.custid,APICustomer1.custname,APICustmer1.status);
}
catch (Exception ex)
{}
return APICustomer1.custid+": is Inserted";
}