'How to validate jwt token in web api action method

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";
    }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source