asp net core api response using composition over inheritance
hi all, i come across an article creating a BaseResponse class for their API response, but the article also stated that it's better to use Composition over inheritance for the API response, can anyone help advise how does that work? is it to create a response class and register them as a service so that we can return this response class (which is a service) as our API response? thank you so much in advance..


