20 lines
512 B
C#
20 lines
512 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
|
|
} |