Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 5cde20f

Browse files
committed
Riorganizzazione dei metodi statici
1 parent a4ff950 commit 5cde20f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/NET6CustomLibrary/Extensions/DependencyInjection.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ public static WebApplication UseLocalizationConfiguration(this WebApplication ap
5959
#endregion
6060

6161
#region "DATE and TIME"
62+
public static IMvcBuilder AddSimpleJsonOptions(this IMvcBuilder builder)
63+
{
64+
builder.AddJsonOptions(options =>
65+
{
66+
options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
67+
});
68+
return builder;
69+
}
70+
6271
public static IMvcBuilder AddDateTimeJsonOptions(this IMvcBuilder builder)
6372
{
6473
builder.AddJsonOptions(options =>
@@ -100,15 +109,6 @@ public static SwaggerGenOptions AddDateTimeSwaggerGenOptions(this SwaggerGenOpti
100109

101110
return options;
102111
}
103-
104-
public static IMvcBuilder AddSimpleJsonOptions(this IMvcBuilder builder)
105-
{
106-
builder.AddJsonOptions(options =>
107-
{
108-
options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
109-
});
110-
return builder;
111-
}
112112
#endregion
113113

114114
#region "DB Context"

0 commit comments

Comments
 (0)