© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
4 replies
Carlos Saraiva

Business Logic Problem

Hi everyone!
I have a business logic problem, I'm developing a financial management application, but whenever I make accounts releases creating a register, for example an outcome of 50 dollars, I have to create a release register in my registers collection (I'm using MongoDB) and update the account balance which is in another collection. My question is how can I separate the registers logic from the account logic? I want to make some kind of observer and whenever the register is created or modified I want the account to be notified and changed too. Here is how my entities look like and my services are looking good except from the register service which is a mess because I'm also changing the accounts there.
image.png
image.png
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

Logging from disconnected Business logic
C#CC# / help
15mo ago
❔ Business Logic Validation in Service Layer
C#CC# / help
3y ago
How to bind REST API and business logic ?
C#CC# / help
2y ago
Help with a logic problem with `DateOnly`?
C#CC# / help
3d ago