I have two objects:
public class Info
{
public string ArtificialPerson {get; set;}
...
}
public class DtoInfo
{
public string FullName {get; set;}
public bool IsLegal {get; set;}
}
I want to do the following, if IsLegal is true then map FullName to ArtificialPerson. How can I do this?
Thanks
You should set some mapping configuration: