aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Configurations')
-rw-r--r--src/DevHive.Web/Configurations/Mapping/CommentMappings.cs18
1 files changed, 18 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..dd11420
--- /dev/null
+++ b/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
@@ -0,0 +1,18 @@
+using AutoMapper;
+using DevHive.Web.Models.Comment;
+using DevHive.Services.Models.Comment;
+
+namespace DevHive.Web.Configurations.Mapping
+{
+ public class CommentMappings : Profile
+ {
+ public CommentMappings()
+ {
+ CreateMap<CommentWebModel, CommentServiceModel>();
+ CreateMap<CommentWebModel, UpdateCommentServiceModel>();
+ CreateMap<CommentServiceModel, CommentWebModel>();
+ CreateMap<CommentWebModel, CommentServiceModel>();
+ CreateMap<GetByIdCommentServiceModel, GetByIdCommentWebModel>();
+ }
+ }
+} \ No newline at end of file