Onion-architecture-ASP.NET-Core
Onion-architecture-ASP.NET-Core copied to clipboard
Approach for multi HttpPatch Api for One Entity
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