lundi 20 avril 2020

How to assign attribute to classes methods by convention?

I wanted to make my Controller methods register as [HttpGet] if they have "get" in the method name, the same goes for [HttpPost] if they have "create" etc.

How can I create an "attributeAssigner", that would go over the assembly and do the job?





Aucun commentaire:

Enregistrer un commentaire