c# automapper model to dto 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);
}