How to create ValueProvider for MVC

I want to create a Valueprovider in ASP.Net.MVC 2 Beta. My source of value will be JSON

+3
source share
1 answer

Drop JsonValueProviderFactory from MVC 2 RC Futures. Download the source ZIP ; the specific file you should be looking at is src \ MvcFutures \ Mvc \ JsonValueProviderFactory.cs . To connect it, add it to the static collection ValueProviderFactories.Factories from Application_Start.

+2
source

Source: https://habr.com/ru/post/1726477/


All Articles