mapping dto with db entity one to one using 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);
}