diff options
Diffstat (limited to 'src/Web/DevHive.Web/Configurations/Mapping/RatingMappings.cs')
| -rw-r--r-- | src/Web/DevHive.Web/Configurations/Mapping/RatingMappings.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Web/DevHive.Web/Configurations/Mapping/RatingMappings.cs b/src/Web/DevHive.Web/Configurations/Mapping/RatingMappings.cs new file mode 100644 index 0000000..1d731d8 --- /dev/null +++ b/src/Web/DevHive.Web/Configurations/Mapping/RatingMappings.cs @@ -0,0 +1,18 @@ +using AutoMapper; +using DevHive.Services.Models.Rating; +using DevHive.Web.Models.Rating; + +namespace DevHive.Web.Configurations.Mapping +{ + public class RatingMappings : Profile + { + public RatingMappings() + { + CreateMap<CreateRatingWebModel, CreateRatingServiceModel>(); + + CreateMap<ReadRatingServiceModel, ReadRatingWebModel>(); + + CreateMap<UpdateRatingWebModel, UpdateRatingServiceModel>(); + } + } +} |
