Beispiel #1
0
        public List <Tournament> CreateTournaments()
        {
            repo.ConfigurationRepository.setConfigurations();
            List <Tournament_DL> tournmentDetails = repo.TournamentRepository.CreateTournaments();

            return(MapperProfile.MapList <Tournament_DL, Tournament>(_mapper, tournmentDetails));
        }
Beispiel #2
0
        public Team CreateTeam(Team team)
        {
            var     teamobj     = _mapper.Map <Team, Team_DL>(team);
            Team_DL teamDetails = repo.TeamRepository.CreateTeam(teamobj);

            return(MapperProfile.Map <Team_DL, Team>(_mapper, teamDetails));
        }