1
Reply

How we can restrict access to methods with specific HTTP verbs in Web API?

Suresh Kumar

Suresh Kumar

6y
156
0
Reply

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