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
Define mapping between Source and OutputData.
Source
OutputData
Mapper.CreateMap();
Update your configuration to map Destination.Output with OutputData.
Destination.Output
Mapper.CreateMap().ForMember( dest => dest.Output, input => input.MapFrom(s=>Mapper.Map(s)));