C#C
C#3y ago
big OOF

❔ Architecture

Hello,

If you have a API-controller class with a GET method inside. Lets say the GET should return a math calculation that is done in the function ExampleFunction(). The GET inside the api-controller needs to call the ExampleFunction.

So to my question, where should you place ExmapleFunction()? From what i understand:
  • Not in the API controller
  • Maybe inside a service class?
  • Create a "general methods class"?
Thanks in advance 🙂
Was this page helpful?