how to use automapper profile and Data transferer object code example
Example: dto and automapper
public TeamDTO GetByID(int id)
{
var team = ... //Get Team entity from data store
return Mapper.Map<TeamDTO>(team);
}
public TeamDTO GetByID(int id)
{
var team = ... //Get Team entity from data store
return Mapper.Map<TeamDTO>(team);
}