Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created March 3, 2019 16:01
Show Gist options
  • Save explorer14/b35d46eeec024b28f235826cf6287f03 to your computer and use it in GitHub Desktop.
Save explorer14/b35d46eeec024b28f235826cf6287f03 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc(x => x.Filters.Add(new ModelBindingFailureFilter()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment