AspNetCore.Docs/aspnet/mvc/models/validation/sample/Startup.cs

16 lines
329 B
C#

using Microsoft.AspNet.Mvc;
namespace MVCMovie
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.Configure<MvcOptions>(options =>
{
options.MaxModelValidationErrors = 50;
});
}
}
}