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());
|
});
|
}
|
}
|