I have source object ConversationResponseDTO which I don’t have any control over. Either the single object has value or the list value has value.
public class ConversationResponseDTO {
public Response Response { get; set; }
public List<Response> Responses { get; set; }
}
public class ConversationResponse {
public List<Response> Responses { get; set; }
}
I want to map single Response from ConversationResponseDTO to Responses in ConversationResponse, and also map Responses in ConversationResponseDTO to Responses in ConversationResponse.
How can I do this with AutoMapper?