I am using automapper to map source and destination objects. While I map them I get the below error.
Expression must resolve to top-level member. Par
This worked for me:
Mapper.CreateMap() .ForMember(x => x.Cars, x => x.MapFrom(y => y.OutputData.Cars)) .ReverseMap();