© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
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 🙂
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Clean Architecture
C#CC# / help
17mo ago
Architecture help
C#CC# / help
2y ago
Architecture problem
C#CC# / help
2y ago
Architecture Review
C#CC# / help
2y ago