Ejemplo n.º 1
0
        public PO_Teams Map(TeamsDAO _TeamsToMap)
        {
            PO_Teams _TeamsToReturn = new PO_Teams();

            _TeamsToReturn.TeamName           = _TeamsToMap.TeamName;
            _TeamsToReturn.TeamDescription    = _TeamsToMap.TeamDescription;
            _TeamsToReturn.FKPlayerName       = _TeamsToMap.FKPlayerName;
            _TeamsToReturn.PositionsAvaliable = _TeamsToMap.PositionsAvaliable;
            _TeamsToReturn.PositionsTaken     = _TeamsToMap.PositionsTaken;


            return(_TeamsToReturn);
        }
Ejemplo n.º 2
0
        //Team View mapper
        public List <PO_Teams> Map(List <TeamsDAO> _dataTeams)
        {
            List <PO_Teams> _PressTeams = new List <PO_Teams>();

            foreach (TeamsDAO _dataTeam in _dataTeams)
            {
                PO_Teams _Teams = new PO_Teams();
                _Teams.TeamName           = _dataTeam.TeamName;
                _Teams.TeamDescription    = _dataTeam.TeamDescription;
                _Teams.FKPlayerName       = _dataTeam.FKPlayerName;
                _Teams.PositionsAvaliable = _dataTeam.PositionsAvaliable;
                _Teams.PositionsTaken     = _dataTeam.PositionsTaken;


                _PressTeams.Add(_Teams);
            }
            return(_PressTeams);
        }