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

Commit 16a8c72

Browse files
committed
Fix documentazione
1 parent e9d169a commit 16a8c72

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/NET6CustomLibrary/Docs/README-DateTimeOnly.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public IConfiguration Configuration { get; }
1313

1414
public void ConfigureServices(IServiceCollection services)
1515
{
16-
TypeDescriptor.AddAttributes(typeof(DateOnly), new TypeConverterAttribute(typeof(DateOnlyTypeConverter)));
17-
TypeDescriptor.AddAttributes(typeof(TimeOnly), new TypeConverterAttribute(typeof(TimeOnlyTypeConverter)));
16+
services.AddDateTimeOnlyAttributes();
1817

1918
services.AddControllers()
2019
.AddDateTimeJsonOptions();
@@ -23,16 +22,5 @@ public void ConfigureServices(IServiceCollection services)
2322

2423

2524
## Added options in swagger configuration
26-
```csharp
27-
public void ConfigureServices(IServiceCollection services)
28-
{
29-
services.AddSwaggerGen(options =>
30-
{
31-
//OMISSIS
3225

33-
options.AddDateTimeSwaggerGenOptions();
34-
35-
//OMISSIS
36-
});
37-
}
38-
```
26+
Consult the documentation by clicking [here](https://github.com/AngeloDotNet/NET6CustomLibrary/blob/main/src/NET6CustomLibrary/Docs/README-SwaggerDateTime.md).

0 commit comments

Comments
 (0)