Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Created June 13, 2020 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitvijay/2692060b84d6c4436ace64905516cdb8 to your computer and use it in GitHub Desktop.
Save ankitvijay/2692060b84d6c4436ace64905516cdb8 to your computer and use it in GitHub Desktop.
Part 3 - Startup.cs (Register ModelBinderProvider)
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