Use file scoped namepace
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace GerstITS.Examples.Api
|
||||
namespace GerstITS.Examples.Api;
|
||||
|
||||
public sealed partial class Module
|
||||
{
|
||||
public sealed partial class Module
|
||||
#region Methods
|
||||
|
||||
private static void RegisterMvc(IServiceCollection container)
|
||||
{
|
||||
#region Methods
|
||||
//container.AddTransient<IConfigureOptions<MvcOptions>, ApiMvcOptions>();
|
||||
//container.AddTransient<IConfigureOptions<MvcNewtonsoftJsonOptions>, MvcJsonOptions>();
|
||||
|
||||
private static void RegisterMvc(IServiceCollection container)
|
||||
{
|
||||
//container.AddTransient<IConfigureOptions<MvcOptions>, ApiMvcOptions>();
|
||||
//container.AddTransient<IConfigureOptions<MvcNewtonsoftJsonOptions>, MvcJsonOptions>();
|
||||
|
||||
container.AddMvc()
|
||||
.AddNewtonsoftJson();
|
||||
}
|
||||
|
||||
#endregion
|
||||
container.AddMvc()
|
||||
.AddNewtonsoftJson();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user