Co muszę podać w konfiguracji Automappera, zeby zmapować Vehicle na VehicleDto. Nie wiem jak zmapować właściwość Route na Source i Destination,
czyli chcę zrobić, żeby
_vehicle.Route.Source => _vehicleDto.Source
_vehicle.Route.Destination => _vehicleDto.Destination
public class Route
{
public string Source {get;set;}
public string Destination {get;set;}
...
}
public class Vehicle
{
public int Id{get;set;}
public string Name{get; set;}
public Route Route {get;set;}
...
}
public class VehicleDto
{
public string Name {get; set;}
public string Source{get; set;}
public string Destination {get; set;}
}