18 lines
482 B
C#
18 lines
482 B
C#
using GerstITS.Examples.Api.ExceptionHandling;
|
|
using GerstITS.Web.Api.ExceptionHandling.Extensions;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace GerstITS.Examples.Api
|
|
{
|
|
public sealed partial class Module
|
|
{
|
|
#region Methods
|
|
|
|
private static void RegisterExceptionHandling(IServiceCollection container)
|
|
{
|
|
container.RegisterExceptionTransformationsOf<ValidationExceptionTransformation>();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |