Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Should Web API controller class be always suffixed with 'Controller'?

$
0
0
public class ProductsController : ApiController
    {

          //Web API methods defined in this class

    }

When creating a Web API controller class, is it necessary to end the name of controller class with the stringcontroller? I have been doing it always as a practice but not sure if it can be made to work without this suffix.


Viewing all articles
Browse latest Browse all 4850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>