3 ms·
You can also use [HttpGet], [HttpDelete], [HttpPost], [HttpGet] attributes. Personal preference.
by darylteo 15y ago
You can also use [HttpGet], [HttpDelete], [HttpPost], [HttpGet] attributes. Personal preference.
- rodh257 15y agoyeah but the problem he is having is that you'd need to have different a different method signature for each of these otherwise it won't compile, and he wants to have the same path/parameters for each, which is why you need to rename your method and then add the different attribute. If your methods already have different parameters or a different name, you can just use the attributes like you state.