Check out example codes for "dto and automapper". It will help you in understanding the concepts better.

Code Example 1

public TeamDTO GetByID(int id)
{
    var team = ... //Get Team entity from data store
    return Mapper.Map<TeamDTO>(team);
}

Learn ReactJs, React Native from akashmittal.com