NuGet package:
PM> Install-Package AwesomeSerializer -Version 1.0.1
We have two controllers, ProductController and CategoryController.
Decorate your controller with:
[AwesomeSerializer.Serializers.AwesomeSerializer(typeof(YourCustomResolver))]
AwesomeSerializer allows you to serialize properties depending on a particular controller using custom resolvers
Get api/product . return:
Get api/category . return:
Thanks!