Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Services / Configurations / Mapping / CommentMappings.cs
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--src/DevHive.Services/Configurations/Mapping/CommentMappings.cs17
diff --git a/src/DevHive.Services/Configurations/Mapping/CommentMappings.cs b/src/DevHive.Services/Configurations/Mapping/CommentMappings.cs
new file mode 100644
index 0000000..8120488
--- /dev/null
+++ b/src/DevHive.Services/Configurations/Mapping/CommentMappings.cs
@@ -0,0 +1,17 @@
+using DevHive.Data.Models;
+using AutoMapper;
+using DevHive.Services.Models.Comment;
+
+namespace DevHive.Services.Configurations.Mapping
+{
+ public class CommentMappings : Profile
+ {
+ public CommentMappings()
+ {
+ CreateMap<CommentServiceModel, Comment>();
+ CreateMap<Language, CommentServiceModel>();
+ CreateMap<UpdateCommentServiceModel, Language>();
+ CreateMap<GetByIdCommentServiceModel, Language>();
+ }
+ }
+} \ No newline at end of file