Filters samples associated with MSDN article. Learn more from the ASP.NET Core Quick Start course.
Updated to work with ASP.NET Core 1.0 (RTM).
You can also add the ValidateModelAttribute to your project as a nuget package: https://www.nuget.org/packages/Ardalis.ValidateModel