diff options
| author | transtrike <transtrike@gmail.com> | 2020-12-30 21:21:49 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2020-12-30 21:21:49 +0200 |
| commit | 278130d86378a6b2db6ba443631f303fb7d7e207 (patch) | |
| tree | 72fa0ad4889a9f18cdd0a54992dc151784323c83 /src/DevHive.Services/Configurations/Mapping/PostMappings.cs | |
| parent | a96478dd52250c4f5b494c66806d5e97156c48b3 (diff) | |
| download | DevHive-278130d86378a6b2db6ba443631f303fb7d7e207.tar DevHive-278130d86378a6b2db6ba443631f303fb7d7e207.tar.gz DevHive-278130d86378a6b2db6ba443631f303fb7d7e207.zip | |
Implemented Posts and merged Comment to Post
Diffstat (limited to 'src/DevHive.Services/Configurations/Mapping/PostMappings.cs')
| -rw-r--r-- | src/DevHive.Services/Configurations/Mapping/PostMappings.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/DevHive.Services/Configurations/Mapping/PostMappings.cs b/src/DevHive.Services/Configurations/Mapping/PostMappings.cs new file mode 100644 index 0000000..695ffdb --- /dev/null +++ b/src/DevHive.Services/Configurations/Mapping/PostMappings.cs @@ -0,0 +1,16 @@ +using DevHive.Data.Models; +using AutoMapper; +using DevHive.Services.Models.Post; +using DevHive.Services.Models.Post.Post; + +namespace DevHive.Services.Configurations.Mapping +{ + public class PostMappings : Profile + { + public PostMappings() + { + CreateMap<PostServiceModel, Post>(); + CreateMap<Post, PostServiceModel>(); + } + } +} |
