Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Approach for multi HttpPatch Api for One Entity #44

Open
AmirrezaTaleb opened this issue Dec 22, 2022 · 0 comments
Open

Approach for multi HttpPatch Api for One Entity #44

AmirrezaTaleb opened this issue Dec 22, 2022 · 0 comments

Comments

@AmirrezaTaleb
Copy link

Hi
I Have 3 patch API With 3 different Dto For modified One Entity :

which approach is better

1- Create 3 services For Modified with 3 different DTOs (All Those Methods are the same)

2- Create 1 Service For Modified With One Dto Called "EditDto" And Map Those 3 DTOs To EditDto

3- Create 1 Service For Modified With Entity As param And Map Those 3 DTOs To Entity

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant