kyy
2025-07-02 1199ab0dc15d57d224649c9f5474f702a1542bba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using Gs.Toolbox.ApiCore.Common.Mvc;
using Microsoft.Extensions.DependencyInjection;
 
namespace Gs.Toolbox.ApiCore.Extensions;
 
public static class IServiceCollectionExtension
{
    public static void AddCustomConvention(this IServiceCollection services)
    {
        services.AddMvc(options =>
        {
            options.Conventions.Add(new CustomApplicationModelConvention());
        });
    }
}