In ASP.NET MVC WebAPI project by default we have created following controller
public class ValuesController : ApiController
{
/
You can use attributes such as the RoutePrefix with the Http type.
[Route("ChangePassword")]
[HttpPost] // There are HttpGet, HttpPost, HttpPut, HttpDelete.
public async Task ChangePassword(ChangePasswordModel model)
{
}
The http type will map it back to its correct method in combination with the Route name.