Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.21 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.21 KB

AwesomeSerializer

NuGet package:

PM> Install-Package AwesomeSerializer -Version 1.0.1

Usage

We have two controllers, ProductController and CategoryController.

Decorate your controller with:

[AwesomeSerializer.Serializers.AwesomeSerializer(typeof(YourCustomResolver))]

alt text alt text

AwesomeSerializer allows you to serialize properties depending on a particular controller using custom resolvers

alt text alt text

Results

Get api/product . return:

alt text

Get api/category . return:

alt text

Thanks!