I have a following mapping in Automapper
.ForMember(d => d.Comment1, opt => opt.MapFrom(src => src.Comments?.FirstOrDefault(c => c.Type == "COMMENT1")?.Text))
But I am able to figure a way around the error
an expression tree lambda cannot contain a null propagating operator
Is there a simple way for doing this?