aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Startup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r--Timeline/Startup.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs
index 35c47712..76d77e8e 100644
--- a/Timeline/Startup.cs
+++ b/Timeline/Startup.cs
@@ -62,7 +62,10 @@ namespace Timeline
services.AddScoped<IPathProvider, PathProvider>();
- services.AddAutoMapper(GetType().Assembly);
+ services.AddAutoMapper((config) =>
+ {
+ config.CreateMap<Guid, string>().ConvertUsing(guid => guid.ToString());
+ }, GetType().Assembly);
services.AddTransient<IClock, Clock>();