aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Configurations/Mapping/CommentMappings.cs')
-rw-r--r--src/DevHive.Web/Configurations/Mapping/CommentMappings.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
new file mode 100644
index 0000000..b8d6829
--- /dev/null
+++ b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
@@ -0,0 +1,17 @@
+using AutoMapper;
+using DevHive.Services.Models.Comment;
+using DevHive.Web.Models.Comment;
+
+namespace DevHive.Web.Configurations.Mapping
+{
+ public class CommentMappings : Profile
+ {
+ public CommentMappings()
+ {
+ CreateMap<CreateCommentWebModel, CreateCommentServiceModel>();
+ CreateMap<UpdateCommentWebModel, UpdateCommentServiceModel>();
+
+ CreateMap<ReadCommentServiceModel, ReadCommentWebModel>();
+ }
+ }
+}