Onion-architecture-ASP.NET-Core icon indicating copy to clipboard operation
Onion-architecture-ASP.NET-Core copied to clipboard

Approach for multi HttpPatch Api for One Entity

Open AmirrezaTaleb opened this issue 2 years ago • 0 comments

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

AmirrezaTaleb avatar Dec 22 '22 09:12 AmirrezaTaleb