public TeamsModel Map(TeamsDAO _TeamsToMap)
        {
            TeamsModel _TeamsToReturn = new TeamsModel();

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


            return(_TeamsToReturn);
        }
        //Team View mapper
        public List <TeamsModel> Map(List <TeamsDAO> _dataTeams)
        {
            List <TeamsModel> _ListTeams = new List <TeamsModel>();

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


                _ListTeams.Add(_Teams);
            }
            return(_ListTeams);
        }
 public TeamList()
 {
     SingleTeam = new TeamsModel();
     _TeamsList = new List <TeamsModel>();
 }