Created
June 13, 2020 21:06
-
-
Save ankitvijay/2692060b84d6c4436ace64905516cdb8 to your computer and use it in GitHub Desktop.
Part 3 - Startup.cs (Register ModelBinderProvider)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(options => | |
{ | |
options.ModelBinderProviders.Insert(0, new EnumerationQueryStringModelBinderProvider()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment