aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Configurations/Mapping/PostMappings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Services/Configurations/Mapping/PostMappings.cs')
-rw-r--r--src/DevHive.Services/Configurations/Mapping/PostMappings.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DevHive.Services/Configurations/Mapping/PostMappings.cs b/src/DevHive.Services/Configurations/Mapping/PostMappings.cs
index 13c9736..9362f90 100644
--- a/src/DevHive.Services/Configurations/Mapping/PostMappings.cs
+++ b/src/DevHive.Services/Configurations/Mapping/PostMappings.cs
@@ -2,6 +2,8 @@ using DevHive.Data.Models;
using AutoMapper;
using DevHive.Services.Models.Post;
using DevHive.Common.Models.Misc;
+using System.Collections.Generic;
+using DevHive.Services.Models;
namespace DevHive.Services.Configurations.Mapping
{
@@ -24,6 +26,8 @@ namespace DevHive.Services.Configurations.Mapping
CreateMap<Post, IdModel>()
.ForMember(dest => dest.Id, src => src.MapFrom(x => x.Id));
+
+ CreateMap<List<Post>, ReadPageServiceModel>();
}
}
}