I have a class called EmployeeDto which has property FirstName and LastName,
public class EmployeeDto
{
public string FirstName{ get; set; }
public string LastName{ get; set; }
public string Email { get; set; }
}
While using automapper to convert to employee I want to combine FirstName and LastName and add that to Name field
public class Employee
{
public string Name { get; set; }
public string Email { get; set; }
}
How to achieve this?