diff options
Diffstat (limited to 'src/DevHive.Web/Configurations/Mapping/CommentMappings.cs')
| -rw-r--r-- | src/DevHive.Web/Configurations/Mapping/CommentMappings.cs | 18 |
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 |
