kyy
2025-07-25 ea876f671b5111fc1936906d1a531ff99afd4f0a
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());
        });
    }
}