I have to create a Mapping with automapper.
Public class Source
{
public string Id;
public string Firstname;
public string Lastname;
}
Destination is
Public class Destination
{
public string Id;
public Person[] persons;
}
Person Class is
Public class Person
{
public string FirstName;
public string LastName;
}
I am trying to create mapping
AutoMapper.Mapper.CreateMap<Source, Destination>();
but I don't know how to map Firstname, Lastname to array of object Person.