How we can restrict access to methods with specific HTTP verbs in Web API?
Suresh Kumar
Attribute programming is used for this functionality. Web API will support to restrict access of calling methods with specific HTTP verbs. We can define HTTP verbs as attribute over method as shown below[HttpPost]public void UpdateTestCustomer(Customer c){TestCustomerRepository.AddCustomer(c); }