diff options
Diffstat (limited to 'src/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs')
| -rw-r--r-- | src/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs b/src/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs new file mode 100644 index 0000000..afba39c --- /dev/null +++ b/src/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs @@ -0,0 +1,15 @@ +using System; +using AutoMapper; +using AutoMapper.Configuration; +using Microsoft.Extensions.DependencyInjection; + +namespace DevHive.Web.Configurations.Extensions +{ + public static class ConfigureAutoMapper + { + public static void AutoMapperConfiguration(this IServiceCollection services) + { + services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies()); + } + } +}
\ No newline at end of file |
