How to restrict serialized properties with Json.NET and Web API 2.0 using a custom ContractResolver
I recently were in a situation where I needed to hide parts of my models from unauthorized users.
I tried a few different things that weren’t that pretty or maintainable, but in the end I found a pretty simple solution.
To accompany this post I have ...
blog.krusen.dk6 min read