1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using AutoMapper; using DevHive.Data.Models; using DevHive.Services.Models.Post.Rating; namespace DevHive.Services.Configurations.Mapping { public class RatingMappings : Profile { public RatingMappings() { // CreateMap<Rating, ReadPostRatingServiceModel>() // .ForMember(dest => dest.PostId, src => src.MapFrom(p => p.Post.Id)); } } }