public List <Tournament> CreateTournaments() { repo.ConfigurationRepository.setConfigurations(); List <Tournament_DL> tournmentDetails = repo.TournamentRepository.CreateTournaments(); return(MapperProfile.MapList <Tournament_DL, Tournament>(_mapper, tournmentDetails)); }
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)); }