Files
Examples/GerstITS.Examples.Api/Module.Mvc.cs
2021-12-20 22:54:05 +01:00

21 lines
567 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace GerstITS.Examples.Api
{
public sealed partial class Module
{
#region Methods
private static void RegisterMvc(IServiceCollection container)
{
//container.AddTransient<IConfigureOptions<MvcOptions>, ApiMvcOptions>();
//container.AddTransient<IConfigureOptions<MvcNewtonsoftJsonOptions>, MvcJsonOptions>();
container.AddMvc()
.AddNewtonsoftJson();
}
#endregion
}
}