Example #1
0
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddControllers();
     ResolverDependencyConfig.Resolver(services);
     services.Configure <ApiBehaviorOptions>(options =>
     {
         options.SuppressModelStateInvalidFilter = true;
     });
 }
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddControllers();
     ResolverDependencyConfig.Resolver(services);
     ResolverConfigSwagger.Resolver(services, Configuration);
     ResolverConfigureAuthentication.Resolver(services, Configuration);
     ResolverDependecyCache.Resolver(services, Configuration);
     services.Configure <ApiBehaviorOptions>(options =>
     {
         options.SuppressModelStateInvalidFilter = true;
     });
 }