how to generate dto with automapper 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);
}