diff options
| author | transtrike <transtrike@gmail.com> | 2020-12-15 09:33:18 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2020-12-15 09:33:18 +0200 |
| commit | 5c1fdfa47526030d2185eef864b551e9643a3957 (patch) | |
| tree | e1369af0200ac921e9b012a35e9fef385c49cd66 /src/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs | |
| parent | 50009961e285a5e9b73937d8942e258825cf3cae (diff) | |
| download | DevHive-5c1fdfa47526030d2185eef864b551e9643a3957.tar DevHive-5c1fdfa47526030d2185eef864b551e9643a3957.tar.gz DevHive-5c1fdfa47526030d2185eef864b551e9643a3957.zip | |
Adjusted & Extracted Configuration
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 |
